depo
v0.0.3
Published
Depo is a powerful, simple Node.js database.
Downloads
12
Readme
About
Depo is a powerful, simple, key-value Node.js database.
Installation
Stable: npm i depo
Master: npm i boltxyz/depo
Dev: not supported yet
Examples
const Depo = require('depo');
const db = new Depo.Database({
name: 'test' // The database is optional. (Default is depo)
});
// Sets a value to a key
db.set('key', 'value');
db.set('objectkey', {
name: 'Depo',
id: 12345
});
// Gets a value
db.get('key'); // value
db.get('objectkey') // { name: 'Depo', id: 12345 }
// Whether or not, the key exists
db.has('key'); // true