@sweetsnodes/database
v1.0.4
Published
Simple json database for NodeJS
Downloads
4
Readme
SweetsNodes Database
Simple database for NodeJS
Getting started
const { Database } = require("@sweetsnodes/database");
/* import { Database } from "@sweetsnodes/database"; */
let db = new Database();
/* let db = new Database("mydatabase.json"); */
db.set("hello", "hi");
db.get("hello"); /* hi */
db.has("hello"); /* true */
db.delete("hello");
db.has("hello"); /* false */
db.get("hello"); /* undefined */