Package Exports
- ljdb
- ljdb/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ljdb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Local JSON Database (LJDB)
Local JSON Database (LJDB) is a simple JSON-based database that loads data into RAM for fast access.
Installation
npm install ljdbUsage
const LJDB = require("ljdb");
// Create or open a database
const db = new LJDB("mydatabase");
// Read data from file
console.log(db.read());
// Modify data in RAM
db.data.users = [{ name: "Ali", age: 25 }];
// Save changes to file
db.save();
// Delete the database file
LJDB.deleteDB("mydatabase");Features
- Stores data in a JSON file
- Loads data into RAM for fast access
- Simple and easy to use
- Supports reading, modifying, and deleting data
License
MIT