package
Buffer-keyed map for javascript
npm install buffer-mapGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
8.4 kB
Includes dependencies.
Buffer-keyed map for javascript.
const assert = require('assert');
const {BufferMap} = require('buffer-map');
const key1 = Buffer.alloc(32, 0xab);
const key2 = Buffer.alloc(32, 0xab);
const map = new BufferMap();
map.set(key1, 'foo');
assert(map.get(key2) === 'foo');If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
See LICENSE for more info.
nodweber
nodar.chkuaselidze@gmail.com