node-strongmap
v1.0.7
Published
JavaScript Map meets your Hard Disk
Downloads
2
Readme
:dvd: StrongMap
JavaScript Map meets your Hard Disk
API
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');