turbo.db
v0.0.3
Published
A very lightweight and simple JSON based database
Downloads
4
Maintainers
Readme
turbo.db
- A very lightweight and simple JSON based database
- Note: This package wont work below Node.js v12.x
usage
let turbo = require('turbo.db');
let database = new turbo("database.json");
database.set("gender", "male");
let result = database.get("gender")
console.log(result); //returns male
let turbo = require('turbo.db');
let database = new turbo("database.json");
database.set("fruit", "mango");
database.set("ball", "circle");
let result = database.all()
console.log(result); //{"fruit":"mango", "ball":"circle"}
let turbo = require('turbo.db');
let database = new turbo("database.json");
database.set("gender", "male");
let clear = database.nuke()
console.log(clear); //returns {}
let turbo = require('turbo.db');
let database = new turbo("database.json");
database.set("gender", "male");
let result = database.delete("gender")
console.log(result); //returns true