.LOCKB

Arquivo LOCKB

Bun Binary Lockfile
Fazer uma pergunta
RESPOSTA RÁPIDA

Um arquivo .lockb é o arquivo de bloqueio (lockfile) binário de instalação do Bun, quase sempre nomeado como bun.lockb. O Bun o grava quando você executa bun install para fixar as versões exatas e os hashes de integridade de cada dependência, garantindo que as instalações sejam reproduzíveis. Ele não deve ser aberto manualmente. Para lê-lo, execute bun bun.lockb na pasta do projeto, o que exibe uma visualização em texto no estilo yarn.lock, ou abra o projeto em um editor com o Bun instalado.

Desenvolvedor: Oven (Bun) Categoria: Arquivos de Desenvolvedor MIME: application/octet-stream
ABRE EM Windows macOS Linux
Relacionado: .DO · .MD · .HEX · .XSD

Nesta página

19k+ extensões indexadas
Última revisão em Aug 26, 2026

Não tem certeza do que é seu arquivo?

Arraste qualquer arquivo para o nosso identificador - lemos apenas os primeiros bytes para nomear o formato.

Identificar um arquivo

O que é o formato de ficheiro LOCKB?

Um arquivo .lockb é o arquivo de bloqueio binário criado pelo Bun, o gerenciador de pacotes e runtime de JavaScript e TypeScript da Oven. Ele é quase sempre nomeado como bun.lockb e reside na raiz de um projeto. O Bun o grava quando você executa bun install, registrando o gráfico de dependências resolvido completo: cada pacote, sua versão exata, seus metadados, suas subdependências e hashes de integridade. Fixar tudo isso permite que cada colega de equipe e tarefa de CI instale a mesma árvore.

A Oven construiu o formato como binário para fins de velocidade. Ele armazena dados em arrays lineares, refere-se a pacotes por índice ou por um hash do nome do pacote e remove a duplicidade de strings longas. O arquivo começa com o cabeçalho ASCII bun-lockfile-format-v0. A desvantagem é que um arquivo de bloqueio binário é difícil de revisar e não aparece nos diffs do Git, razão pela qual o Bun v1.1.39 adicionou um lockfile de texto e o Bun v1.2 tornou o bun.lock o padrão para novos projetos. Arquivos bun.lockb existentes ainda funcionam.

Segurança e proteção

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

Detalhes do formato

em resumo
NOME COMPLETOBun Binary Lockfiletambém conhecido como bun.lockb, Bun lockfile
DESENVOLVEDOROven (Bun)desde 2022
TIPO MIMEapplication/octet-stream
TIPOBinary
RELACIONADO.do.md.hex.xsd
MAGIC BYTES · ASSINATURA DO ARQUIVO
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.

Programas que abrem arquivos LOCKB

Windows3 apps
Bun (CLI) Código aberto 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 Gratuito Install Bun, then open the project so the editor can show a readable view of bun.lockb.
@hyrious/bun.lockb parser Código aberto Use this JavaScript library or its web tool to parse bun.lockb and print its contents without installing Bun.
macOS3 apps
Bun (CLI) Código aberto 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 Gratuito Install Bun, then open the folder to view bun.lockb as text inside the editor.
@hyrious/bun.lockb parser Código aberto Parse and print bun.lockb contents in Node or the browser without Bun installed.
Linux3 apps
Bun (CLI) Código aberto 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 Gratuito With Bun installed, open the project to inspect bun.lockb as readable text.
Git with textconv Código aberto Configure git config diff.lockb.textconv bun so git diff shows bun.lockb changes as readable text.

Detalhes técnicos

especificação profunda
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
Lançado2022
Versão mais recentebun-lockfile-format-v0
Especificaçãogithub.com

Conversões de LOCKB

Perguntas e Respostas da Comunidade

perguntado por usuários
Faça uma pergunta rápida
Obtenha ajuda de pessoas que trabalham com arquivos LOCKB. Seja específico - inclua seu sistema e a versão do software.
Não é necessário criar conta · respostas geralmente em um dia

Ainda não há perguntas - seja o primeiro a perguntar sobre arquivos LOCKB.

Perguntas frequentes

Como faço para abrir um arquivo bun.lockb?
Abra um terminal na pasta do projeto e execute bun bun.lockb. O Bun imprime o lockfile como um texto legível no estilo yarn.lock. Você precisa do Bun instalado para isso.
Por que o bun.lockb é binário em vez de texto?
A Oven escolheu um formato binário para que o lockfile seja carregado e salvo muito mais rápido do que JSON ou YAML. A desvantagem é que ele não pode ser lido ou comparado (diff) sem um auxiliar, razão pela qual o Bun adicionou posteriormente o bun.lock baseado em texto.
Devo enviar o bun.lockb para o Git?
Sim. O lockfile fixa as versões exatas das dependências para que cada máquina e execução de CI instale a mesma árvore. Envie-o como qualquer outro lockfile. Para ver diffs legíveis, configure um textconv do Git que execute o Bun no arquivo.
Como converto o bun.lockb para o novo bun.lock?
Execute bun install --save-text-lockfile --frozen-lockfile --lockfile-only e depois exclua o antigo bun.lockb. O Bun v1.2 usa o bun.lock baseado em texto por padrão para novos projetos.
Posso editar um arquivo bun.lockb manualmente?
Não. É uma estrutura binária serializada, não texto. Altere as dependências no package.json e execute bun install para regenerar o arquivo. Editar o binário diretamente irá corrompê-lo.
O bun.lockb ainda é suportado em versões mais recentes do Bun?
Sim. Embora o bun.lock (texto) seja o padrão desde o Bun v1.2, o Bun ainda lê e instala a partir de arquivos bun.lockb existentes sem forçar a migração.

Referências

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

Continue explorando

em todo o banco de dados

Principais extensões desta semana

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)

Extensões relacionadas

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

Ferramentas de arquivo gratuitas

Um identificador de arquivos e conversor de imagens no navegador - tudo funciona no seu dispositivo.

Abrir a caixa de ferramentas

Navegar por extensões de arquivo A-Z