0.0.2 • Published 5 years ago

celendb v0.0.2

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

fendly.db

It doesn't contain error handling and advanced documentation for now.

API

Example

const fendlydb = require("fendly.db");
const db = new fendlydb("./database.json");

db.set("a.b.c.d.e", "ok");
db.set("a.b.c.d.f", {"hmm": "lol"});
db.push("a.b.c.d.g", "ok"); // index 0
db.push("a.b.c.d.g", 212); // index 1
db.set("a.b.c.d.h", 12);
db.update("a.b.c.d.h", (x => x + 1));
db.updateEl("a.b.c.d.g", 1, 2342);

db.get("a.b.c");
/*
  {
    "d": {
      "e": "ok",
      "f": {
        "hmm": "lol"
      },
      "g": ["ok", 2342],
      "h": 13
    }
  }
*/

Changelog

  • 0.0.1 version
  • Module is published.
  • Added basic functions.

Ask questions & Contribute

Add my Discord account for any problem. acar#3875

Look GitHub page for contribute. GitHub Page

0.0.2

5 years ago

0.0.1

5 years ago