icarus.db
Easy Database Module
Examples:
import { DBClient } from 'icarus.db';
const db = new DBClient({
database: 'databasename',
file: 'filename',
});
// Set
db.set(`example`, true);
db.set(`example.ex`, true); // set `example` object's `ex` property.
// Get
db.get(`example`); // returned true because we just set.
db.get(`example.ex`); // get `example` object's `ex` property.
// Push
db.push(`Array`, {
name: 'name',
id: 1,
});
// Pull
db.pull(`Array`, 'key', value);