0.0.3 • Published 5 years ago

depo v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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

Links