Endb – Enhanced Database, is a simplified and powerful database for storing, accessing, and managing database.
- Object-oriented
- Persistent storage
- Configurable
- Performant
- Beginner-friendly
Node.js 10.0.0 or newer is required.
- Run
npm -g --add-python-to-path install windows-build-tools node-gyp
in CMD/Powershell as administrator - Restart CMD/Powershell
- Run
npm i endb
- Install XCode
- Run
npm i -g node-gyp
in Terminal - Run
node-gyp --python /path/to/python2.7
(skip this step if you didn't install python 3.x) - Run
npm i endb
- Run
npm i endb
in Terminal
const Endb = require('endb');
const db = new Endb.Database({
name: 'endb', // optional
});
db.set('account_1234567890', 'password12345'); // -> { key: 'account_1234567890', value: 'password12345' }
db.set('account_123456789', {
id: 123456789,
password: 'password1234567890',
checked: true
}); // -> { key: 'account_123456789', value: '{"id":123456789,"password":"password1234567890","checked":true}' }
db.get('account_1234567890'); // -> password12345
db.has('account_1234567890'); // -> true
db.delete('account_1234567890'); // -> true
db.getAll() // -> // -> [ { key: 'account_123456789', value: '{"id":123456789,"password":"password1234567890","checked":true}' } ]
db.deleteAll(); // -> true