embedb

2.0.1 • Public • Published

embedb

build status
A simple embedded JSON database for small applications. NOTE: Development of this project is currently halted. Please see the ActiveDB project.

Installation

npm install embedb --save

Usage

const Connection = require("embedb");
let conn = new Connection();
conn.connect("mydb", (err, db) => {
    if (err) console.error(err);
    db.set("mydata", {thisis: "atest"}, (err) => {
        if (err) console.error(err);
   	db.get("mydata", (err, data) => {
        if (err) console.error(err);
        console.dir(data); // {thisis: "atest"}
    });
   });
});

For additional documentation, please see the wiki.

Tests

npm test

Contributing

  • Unit tests.
  • Don't change the code TOO much.
  • Don't send in buggy, unfinished, or unworkable code.

Package Sidebar

Install

npm i embedb

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • sahipwn