0.1.3 • Published 2 years ago
burgerdatabase v0.1.3
What is this?
Burger Database is a next-gen cough cough JSON database.
How do i use this?
const Db = require('burgerdatabase');
const db = new Db({ path: './file.json' });
Methods: sync (no arguments, for internal use) set (a: string name, b: string || number || object value) get (a: string name) all (no arguments, returns this.data object) returnAll (no arguments, returns stringified this.data object) add (a: string value, if not a number sets to 0, b: number value to add)
Constructor options: noGzip: boolean (default true) path: string (no default, if empty may cause damage)
This project is licensed under 0BSD licence