0.2.1 • Published 2 years ago

local-jsonbase v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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