node-strongmap

JavaScript Map meets your Hard Disk

Usage no npm install needed!

<script type="module">
  import nodeStrongmap from 'https://cdn.skypack.dev/node-strongmap';
</script>

README

:dvd: 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');