shade
A file system data store using SHA1 keys
example
save
var shade = ; ;
load
var shade = ; ;
methods
shade(dir, cb)
Creates a new data store rooted in the specified directory. cb(err, db)
is called with either an error or a handle to the data store.
db.save(s, cb)
Saves a string s
into the data store. cb(err, key)
is called with either an error or the 8-character key that can be used to retrieve the data from the load
method.
db.load(key, cb)
Loads a string from the data store using the specified key
. cb(err, data)
is called with either an error or the previously saved string.
install
Using npm:
npm install shade
license
MIT