local-jsonbase
v0.2.1
Published
A convenient local json-based database system, which requires no internet connection.
Downloads
5
Readme
local-jsonbase
npm install local-jsonbase
yarn add local-jsonbase
Example
// 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