node-strongmap

1.0.7 • Public • Published

📀 StrongMap visitors+++ version

JavaScript Map meets your Hard Disk

API

Like Map

Naming the map?

const map = new StrongMap();
map.name('/dev/sda1`); // not smart
map.name('happy-map'); // more smart

Getting a named map?

const map = StrongMap();
map.name('/dev/sda1');
// it's a map

What else?

Nothing.

## Why this?

Design

  • sync file access (and use fsyncSync and fsyncdataSync)

Caveats

  • slow
  • inefficient
  • incomplete

How to set the root directory for maps?

map.root('path/to/where/i/store/my/dicts');

Readme

Keywords

Package Sidebar

Install

npm i node-strongmap

Weekly Downloads

0

Version

1.0.7

License

AGPL-3.0

Unpacked Size

72.6 kB

Total Files

10

Last publish

Collaborators

  • dosy