site-panzai/node_modules/bare-buffer
2026-11-13 13:57:04 +01:00
..
lib first commit 2026-11-13 13:57:04 +01:00
prebuilds first commit 2026-11-13 13:57:04 +01:00
binding.c first commit 2026-11-13 13:57:04 +01:00
binding.js first commit 2026-11-13 13:57:04 +01:00
CMakeLists.txt first commit 2026-11-13 13:57:04 +01:00
global.d.ts first commit 2026-11-13 13:57:04 +01:00
global.js first commit 2026-11-13 13:57:04 +01:00
index.d.ts first commit 2026-11-13 13:57:04 +01:00
index.js first commit 2026-11-13 13:57:04 +01:00
LICENSE first commit 2026-11-13 13:57:04 +01:00
package.json first commit 2026-11-13 13:57:04 +01:00
README.md first commit 2026-11-13 13:57:04 +01:00

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