1.0.5 • Published 2 years ago

nya-json-db v1.0.5

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

Nya JSON DB

(Not yet another) json database is a super simple implementation of a persistent database which uses c++ in the backend. Requires Python >= 3.7 and MSVC Build Tools 2017.

Usage

const NyaJSONDB = require("nya-json-db");

let nyaJSONDB = new NyaJSONDB(<path to db>, (<options>));

// Set object
nyaJSONDB.set(<key>, <object>);

// Get Object
const result = nyaJSONDB.get(<key>);

// Clear Database
nyaJSONDB.clear();

Options

options = {
    autoSave: boolean; // Automatically saves database to disk. Defaultvalue: true.
}
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago