npm install local-jsonbase
yarn add local-jsonbase
// import {default as JsonBase} from "local-jsonbase"
const { default: JsonBase } = require("local-jsonbase")
const jsonBase = new JsonBase("database")
const docRef = await jsonBase.collection("users").add({
username: "monty_bhai",
age: 24,
})
docRef
.collection("notifications")
.doc("first")
.create({ content: "This is your first notification." })
Highly inspired from firestore