1.0.1 • Published 4 years ago
script.db v1.0.1
Installation
npm install script.db --save
Example
const { Database } = require('script.db')
const db = new Database('db.json');
db.set('company', 'EveCloud');
db.get('company'); // 'EveCloud'
console.log(db.ping()) // { read: '0ms', write: '2ms', average: '1ms' }
Methods
- .add()
- .get()
- .has()
- .clear()
- .delete()
- .save()
- .set()
- .subtract()
Links
License
Script.db is licensed under the GPL-3.0 license. Please take a look at the LICENSE
file.