burgerdatabase
v0.1.3
Published
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 || nu
Downloads
5
Readme
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