JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q26100F
  • License MIT

A simple local JSON-based database that loads data into RAM for fast access.

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 ljdb

Usage

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