.LOCKB

LOCKB-bestand

Bun Binary Lockfile
Stel een vraag
SNEL ANTWOORD

Een .lockb-bestand is het binaire installatie-lockbestand van Bun, bijna altijd genaamd bun.lockb. Bun schrijft dit wanneer u bun install uitvoert om de exacte versies en integriteitshashes van elke afhankelijkheid vast te leggen, zodat installaties reproduceerbaar zijn. Het is niet bedoeld om handmatig te worden geopend. Om het te lezen, voert u bun bun.lockb uit in de projectmap, wat een tekstweergave in yarn.lock-stijl weergeeft, of opent u het project in een editor waarin Bun is geïnstalleerd.

Ontwikkelaar: Oven (Bun) Categorie: Ontwikkelaarsbestanden MIME: application/octet-stream
OPENT OP Windows macOS Linux
Gerelateerd: .DO · .MD · .HEX · .XSD

Op deze pagina

19k+ extensies geïndexeerd
Laatst beoordeeld op Aug 26, 2026

Niet zeker wat uw bestand is?

Sleep een bestand naar onze identificatietool - we lezen alleen de eerste bytes om het formaat te benoemen.

Identificeer een bestand

Wat is het LOCKB-bestandsformaat?

Een .lockb-bestand is het binaire lockbestand gemaakt door Bun, de JavaScript- en TypeScript-pakketbeheerder en runtime van Oven. Het heet bijna altijd bun.lockb en bevindt zich in de hoofdmap van een project. Bun schrijft het wanneer u bun install uitvoert, waarbij de volledige opgeloste afhankelijkheidsgrafiek wordt vastgelegd: elk pakket, de exacte versie, de metadata, de sub-afhankelijkheden en integriteitshashes. Door dit alles vast te pinnen, kunnen alle teamleden en CI-taken dezelfde boomstructuur installeren.

Oven heeft het formaat als binair bestand gebouwd voor snelheid. Het slaat gegevens op in lineaire arrays, verwijst naar pakketten via index of via een hash van de pakketnaam, en ontdubbelt lange tekenreeksen. Het bestand opent met de ASCII-header bun-lockfile-format-v0. Het nadeel is dat een binair lockbestand moeilijk te beoordelen is en niet verschijnt in Git-diffs, wat de reden is waarom Bun v1.1.39 een tekst-lockbestand toevoegde en Bun v1.2 bun.lock de standaard maakte voor nieuwe projecten. Bestaande bun.lockb-bestanden werken nog steeds.

Beveiliging & veiligheid

RISICO: 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.

Formaatdetails

in een notendop
VOLLEDIGE NAAMBun Binary Lockfileook bekend als bun.lockb, Bun lockfile
ONTWIKKELAAROven (Bun)sinds 2022
MIME-TYPEapplication/octet-stream
TYPEBinary
GERELATEERD.do.md.hex.xsd
MAGIC BYTES · BESTANDSSIGNATUUR
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.

Programma's die LOCKB-bestanden openen

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 Gratis 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 Gratis 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 Gratis 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

diepe specificaties
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
Uitgebracht2022
Laatste versiebun-lockfile-format-v0
Specificatiegithub.com

LOCKB conversies

Community V&A

gevraagd door gebruikers
Stel een korte vraag
Krijg hulp van mensen die met LOCKB-bestanden werken. Wees specifiek - vermeld uw systeem en softwareversie.
Geen account nodig · antwoorden meestal binnen een dag

Nog geen vragen - wees de eerste om iets te vragen over LOCKB-bestanden.

Veelgestelde vragen

Hoe open ik een bun.lockb-bestand?
Open een terminal in de projectmap en voer bun bun.lockb uit. Bun print het lockbestand als leesbare tekst in yarn.lock-stijl. U moet Bun hiervoor geïnstalleerd hebben.
Waarom is bun.lockb binair in plaats van tekst?
Oven koos voor een binair formaat zodat het lockbestand veel sneller laadt en opslaat dan JSON of YAML. De afweging is dat het niet kan worden gelezen of vergeleken zonder een hulpprogramma, wat de reden is waarom Bun later het tekstgebaseerde bun.lock toevoegde.
Moet ik bun.lockb committen aan Git?
Ja. Het lockbestand pint exacte versies van afhankelijkheden vast, zodat elke machine en CI-run dezelfde boomstructuur installeert. Commit het zoals elk ander lockbestand. Om leesbare diffs te zien, configureert u een Git textconv die Bun op het bestand uitvoert.
Hoe converteer ik bun.lockb naar het nieuwe bun.lock?
Voer bun install --save-text-lockfile --frozen-lockfile --lockfile-only uit en verwijder daarna het oude bun.lockb. Bun v1.2 gebruikt standaard het tekstgebaseerde bun.lock voor nieuwe projecten.
Kan ik een bun.lockb-bestand handmatig bewerken?
Nee. Het is een geserialiseerde binaire structuur, geen tekst. Wijzig afhankelijkheden in package.json en voer bun install uit om het lockbestand opnieuw te genereren. Het direct bewerken van het binaire bestand zal het beschadigen.
Wordt bun.lockb nog steeds ondersteund in nieuwere Bun-versies?
Ja. Hoewel bun.lock (tekst) de standaard is sinds Bun v1.2, leest en installeert Bun nog steeds van bestaande bun.lockb-bestanden zonder migratie te forceren.

Referenties

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

Blijf ontdekken

door de database

Populaire extensies deze week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.PARTPartial Download File
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)

Gerelateerde extensies

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

Gratis bestandstools

Een bestandsidentificatie en afbeeldingsconverter in de browser - alles draait op uw eigen apparaat.

Open de gereedschapskist

Blader door bestandsextensies A-Z