staticstore is key/value database for jsons who uses the filesysteme and static json-files.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
LICENSE
README.md
app.js
package.json

README.md

#staticstore#

staticstore is key/value database for jsons who uses the filesysteme and static json-files.

this is in early development and will be tested soon in my other project in production mode.

##documentation##

more documentation will follow

###basic usage###

npm install staticstore

var store = require('staticstore');

/* initialize your db. by default in './staticstore' you can change this default-path by adding you own as paramater like store.initdb('/root/staticstore'); */ store.initdb();

###store.createdb('database', callback)### creates a database (=folder)

...

###store.deletedb('database', callback)### deletes a database

...

###store.setItem('database/key', callback)### saves a item in a database

...

###store.getItem('database/key', callback)###

...

###store.deleteItem('database/key', callback)###

...

###store.getAllItems('database', callback)###

...

###store.itemCount('database', callback)###

...

###store.getIndex('database', callback)###

...

###store.itemExists('database/key', callback)###

...