@terron/database
v1.0.3
Published
Powerful JSON database by Terron
Downloads
1
Readme
Usage:
const Database = require('@terron/database')
const db = new Database({ logs: true, path: `./to/file.json` })
//Main
db.set('status', true) //Set new db value
db.get('status') // Get db value
//Number
db.add('count', 1) // Add number value
db.remove('hi', 3) // Remove number value
//Array
db.push('array', 555) //Push value in array
db.unpush('array', 555) //Unpush value from array
//Others
db.all() // Get all db values