šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

bromba

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bromba

Fast wasteful short buffer disk storage.

0.1.1
latest
Source
npm
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
Ā 
Created
Source

NPM version Build Status Dependency Status

bromba

Fast wasteful short buffer disk storage.

Install

$ npm install --save bromba

Usage

const bromba = require('bromba');

// all values will have to be 10 bytes Buffers
let db = bromba('/path/to/my/db.dat', { vlen: 10 });

// keys and values have to be Arrays of Buffer's
let keys = [2, 3, 4].map(x => Buffer.from([x]));

// for each key in an keys set corresponding value from values
await db.putMany(keys, values)


// values for each key from keys
const values = await db.getMany(keys);

License

MIT Ā© Damian Krzeminski

Keywords

bromba

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts