.LOCKB

LOCKB Datei

Bun Binary Lockfile
Frage stellen
SCHNELLE ANTWORT

Eine .lockb-Datei ist das binäre Installations-Lockfile von Bun, fast immer unter dem Namen bun.lockb zu finden. Bun schreibt diese Datei beim Ausführen von bun install, um die exakten Versionen und Integritäts-Hashes jeder Abhängigkeit festzuschreiben, damit Installationen reproduzierbar sind. Sie ist nicht dazu gedacht, manuell geöffnet zu werden. Um sie zu lesen, führen Sie bun bun.lockb im Projektordner aus, was eine Textansicht im yarn.lock-Stil ausgibt, oder öffnen Sie das Projekt in einem Editor mit installiertem Bun.

Entwickler: Oven (Bun) Kategorie: Developerdateien MIME: application/octet-stream
VERFÜGBAR AUF Windows macOS Linux
Verwandt: .DO · .MD · .HEX · .XSD

Auf dieser Seite

19k+ Erweiterungen indexiert
Zuletzt geprüft Aug 26, 2026

Nicht sicher, was Ihre Datei ist?

Legen Sie eine beliebige Datei in unseren Identifikator - wir lesen nur die ersten Bytes, um das Format zu benennen.

Datei identifizieren

Was ist das LOCKB-Dateiformat?

Eine .lockb-Datei ist das binäre Lockfile, das von Bun erstellt wird, dem JavaScript- und TypeScript-Paketmanager und der Runtime von Oven. Sie heißt fast immer bun.lockb und befindet sich im Stammverzeichnis eines Projekts. Bun schreibt sie beim Ausführen von bun install und zeichnet den vollständigen aufgelösten Abhängigkeitsgraphen auf: jedes Paket, seine exakte Version, seine Metadaten, seine Unterabhängigkeiten und Integritäts-Hashes. Das Festschreiben all dieser Daten ermöglicht es jedem Teammitglied und jedem CI-Job, denselben Baum zu installieren.

Oven hat das Format aus Geschwindigkeitsgründen als Binärdatei entwickelt. Es speichert Daten in linearen Arrays, referenziert Pakete über einen Index oder einen Hash des Paketnamens und dedupliziert lange Zeichenfolgen. Die Datei beginnt mit dem ASCII-Header bun-lockfile-format-v0. Der Nachteil ist, dass eine binäre Lockfile schwer zu überprüfen ist und nicht in Git-Diffs angezeigt wird, weshalb Bun v1.1.39 eine Text-Lockfile hinzugefügt hat und Bun v1.2 bun.lock zum Standard für neue Projekte gemacht hat. Bestehende bun.lockb-Dateien funktionieren weiterhin.

Sicherheit

RISIKO: LOW

A bun.lockb file is generated data, not an executable, so opening or committing it is safe. Bun can 'run' the file only in the sense that bun ./bun.lockb prints its contents; it does not execute arbitrary code from the file. The only real caution is supply-chain trust: the lockfile pins specific package versions and their sources, so review dependency changes as you would any lockfile update. Never edit it by hand, since a corrupted binary lockfile will fail to parse.

Formatdetails

kurz gefasst
VOLLSTÄNDIGER NAMEBun Binary Lockfilealias bun.lockb, Bun lockfile
ENTWICKLEROven (Bun)seit 2022
MIME TYPEapplication/octet-stream
TYPBinary
MAGIC BYTES · DATEISIGNATUR
OFFSET
000102030405060708090a0b0c0d0e0f101112131415
HEX
62756E2D6C6F636B66696C652D666F726D61742D7630
ASCII
bun-lockfile-format-v0
Files begin with the ASCII header string 'bun-lockfile-format-v0' identifying the binary lockfile format version. The rest of the file is a serialized struct-of-arrays dump and has no line structure.

Programme zum Öffnen von LOCKB-Dateien

Windows3 apps
Bun (CLI) Open Source Run bun bun.lockb in the project directory to print the lockfile as readable yarn.lock-style text, or bun install to use it.
Visual Studio Code with the bun.lockb extension Kostenlos Install Bun, then open the project so the editor can show a readable view of bun.lockb.
@hyrious/bun.lockb parser Open Source Use this JavaScript library or its web tool to parse bun.lockb and print its contents without installing Bun.
macOS3 apps
Bun (CLI) Open Source Run bun bun.lockb to print the lockfile as readable text, or bun install to reinstall from it.
Visual Studio Code with the bun.lockb extension Kostenlos Install Bun, then open the folder to view bun.lockb as text inside the editor.
@hyrious/bun.lockb parser Open Source Parse and print bun.lockb contents in Node or the browser without Bun installed.
Linux3 apps
Bun (CLI) Open Source Run bun bun.lockb for a readable text dump, or bun install to install dependencies from it.
Visual Studio Code with the bun.lockb extension Kostenlos With Bun installed, open the project to inspect bun.lockb as readable text.
Git with textconv Open Source Configure git config diff.lockb.textconv bun so git diff shows bun.lockb changes as readable text.

Technische Details

technische Spezifikation
EncodingBinary (serialized struct-of-arrays memory dump)
Byte orderLittle-endian (native to the machine that wrote it)
ContainerFlat custom binary format, not a standard container
CompressionNone; long strings over 88 characters are deduplicated to save space
Typical sizeA few KB to a few hundred KB depending on dependency count
StructureA header/magic string followed by linear arrays: package list, string buffer, dependency slices, resolutions, and hoisting trees. Packages are referenced by an auto-incrementing index or a hash of the package name rather than by repeated name strings.
IntegrityStores npm-style integrity hashes for each resolved package; the format itself is version-tagged via the header string
PlatformsWindows, macOS, Linux
NotesDesigned for fast reads and memory mapping. It is not human-readable and does not render in Git or GitHub diffs without a textconv helper. Superseded as the default by the text-based bun.lock (JSONC) in Bun v1.2, but still supported.
Human ReadableNo
Veröffentlicht2022
Neueste Versionbun-lockfile-format-v0
Spezifikationgithub.com

LOCKB-Konvertierungen

Community Q&A

von Nutzern gefragt
Schnelle Frage stellen
Holen Sie sich Hilfe von Menschen, die mit LOCKB-Dateien arbeiten. Seien Sie konkret - geben Sie Ihr System und die Softwareversion an.
Kein Konto erforderlich · Antworten meist innerhalb eines Tages

Noch keine Fragen - stellen Sie die erste Frage zu LOCKB-Dateien.

Häufig gestellte Fragen

Wie öffne ich eine bun.lockb-Datei?
Öffnen Sie ein Terminal im Projektordner und führen Sie bun bun.lockb aus. Bun gibt die Lockfile als lesbaren Text im yarn.lock-Stil aus. Dafür muss Bun installiert sein.
Warum ist bun.lockb binär statt Text?
Oven hat sich für ein Binärformat entschieden, damit die Lockfile viel schneller geladen und gespeichert werden kann als JSON oder YAML. Der Kompromiss ist, dass sie ohne Hilfsmittel nicht gelesen oder verglichen werden kann, weshalb Bun später die textbasierte bun.lock hinzugefügt hat.
Sollte ich bun.lockb in Git einchecken?
Ja. Die Lockfile fixiert exakte Abhängigkeitsversionen, sodass jeder Rechner und jeder CI-Lauf denselben Baum installiert. Committen Sie sie wie jede andere Lockfile. Um lesbare Diffs zu sehen, konfigurieren Sie einen Git-textconv, der Bun auf die Datei anwendet.
Wie konvertiere ich bun.lockb in das neue bun.lock?
Führen Sie bun install --save-text-lockfile --frozen-lockfile --lockfile-only aus und löschen Sie dann die alte bun.lockb. Bun v1.2 verwendet standardmäßig die textbasierte bun.lock für neue Projekte.
Kann ich eine bun.lockb-Datei von Hand bearbeiten?
Nein. Es handelt sich um eine serialisierte Binärstruktur, nicht um Text. Ändern Sie Abhängigkeiten in der package.json und führen Sie bun install aus, um die Lockfile neu zu generieren. Das direkte Bearbeiten der Binärdatei führt zu Fehlern.
Wird bun.lockb in neueren Bun-Versionen noch unterstützt?
Ja. Obwohl bun.lock (Text) seit Bun v1.2 der Standard ist, liest und installiert Bun weiterhin aus bestehenden bun.lockb-Dateien, ohne eine Migration zu erzwingen.

Quellen

1Bun docs - Lockfilebun.com
2Bun Blog - Bun's new text-based lockfilebun.com

Weiter entdecken

in der Datenbank

Top-Erweiterungen dieser Woche

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Verwandte Erweiterungen

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Kostenlose Datei-Tools

Ein Browser-Dateiidentifikator und Bildkonverter - alles läuft auf Ihrem Gerät.

Toolbox öffnen

Dateierweiterungen A-Z durchsuchen