osm-p2p-mem
v2.0.0
Published
Create an osm-p2p-db instance backed entirely by in-memory storage.
Downloads
15
Readme
osm-p2p-mem
Create an osm-p2p-db instance backed entirely by in-memory storage.
Quick and easy! Each instance has no shared mutable global state. Great for use in unit tests.
Usage
var osmdb = require('osm-p2p-mem')
var osm = osmdb()
// ready to use! no async wait.
API
var osmdb = require('osm-p2p-mem')
var osm = osmdb()
No arguments. Creates a new
osm-p2p-db
instance.
Install
With npm installed, run
$ npm install osm-p2p-mem
See Also
License
ISC