apexdb-node

1.0.2 • Public • Published

ApexDB

ApexDB - Simple, light & easy to use OpenSource Node.js database. ApexDB allows you to create a database from a json file and conveniently work with it using JavaScript/TypeScript. ApexDB does not load your server, which means you have more resources for the main application to work. Below you can find examples of working with a database in JavaScript.

Install

npm install apexdb-node

Example (JavaScript)

const apexDB = require("@eyeeeeer/ApexDB");

const database = new apexDB();

// Set
database.set("cats", 5);

// Get
database.get("cats"); // { "cats": 5 }

// Add
database.add("cats", 4); // Result: 9

// Has
database.has("dogs"); // false
database.has("cats"); // true

// Push
database.set("peoples", {});
database.push("peoples", { name: "John", age: 32 });
database.get("peoples"); // Output: { "name": "John", age: 32 }

// Clear
database.clear();
database.getAll(); // Output: { }

Package Sidebar

Install

npm i apexdb-node

Weekly Downloads

1

Version

1.0.2

License

GPL-3.0

Unpacked Size

6.16 kB

Total Files

4

Last publish

Collaborators

  • eyeeeeer