site-panzai/node_modules/bare-buffer/README.md
2026-11-13 13:57:04 +01:00

698 B

bare-buffer

Native buffers for JavaScript.

npm i bare-buffer

Usage

const Buffer = require('bare-buffer')

const message = Buffer.from('hello')
const empty = Buffer.alloc(16)
const buffer = Buffer.allocUnsafe(4).fill(123)
const combined = Buffer.concat([buffer, buffer])

API

See the bare-buffer reference.

Threat model

bare-buffer is one of the addons Bare compiles into its binary, so it inherits Bare's threat model. See docs/threat-model.md for where this addon sits in it.

License

Apache-2.0