1.0.0 • Published 7 years ago
named-level-store v1.0.0
named-level-store
Create a levelDB instance on your local machine. Will return the same database given the same name, each time
Usage
const level = require('named-level-store')
const db = level('my-cool-database-name')
console.log(db.location)
// => /Users/anon/.leveldb/my-cool-database-name
API
db = level(name)
Create a database under ~/.leveldb
. Useful to create a database and not have
to worry where it's stored. Sets the db.location
property to reflect where
the database was stored
Installation
$ npm install named-level-store
License
1.0.0
7 years ago