Skip to content

o0101/StrongMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📀 StrongMap visitors+++ version npm

JavaScript Map meets your Hard Disk

API

Like Map

Get

$ npm i --save node-strongmap

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

  • very slow
  • inefficient
  • incomplete
  • buggy and leaky

How to set the root directory for maps?

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

About

JavaScript Map meets your Hard Disk

Resources

License

Stars

Watchers

Forks

Packages