CodeCov Build Status Build Status Build Status License Latest Stable Version License NPM Downloads NPM Downloads Pkgreview.dev Reviews Pkgreview.dv Stars Libraries.io dependency status for latest release Discord npm bundle size GitHub repo size node-current Website

Twitter URL Twitter Follow

Like us a lot? Help others know why you like us! Review this package on pkgreview.dev Review us on pkgreview.dev

jsoning

✨ A simple key-value JSON-based persistent lightweight database. ✨

  • 📝 Uses JSON files to modify and write key-value elements as JSON-objects.
  • 👌 Easy to use JSON database.
  • 🚫 Prevents JSON corruption with atomic file writing.
  • 1️⃣ Uses only 1 dependency (write-file-atomic)
  • 🕊️ Lightweight package with an unpacked size of 12.1 kB.
  • 🖥️ Requires Node.js v12.x or greater

# Install 💾

Node.js v12.x or greater is required for this package to work.

npm install jsoning

View the full documentation here.

# Basic Usage 📑

let jsoning = require('jsoning');
let database = new jsoning("database.json");

database.set("en", "db");
database.set("foo", "bar");
database.set("chro", "venter");

let all = database.all();
console.log(all); // {"en":"db","foo":"bar","chro":"venter"}

# License

This package is open sourced under the MIT License.


If you would like to support my projects, consider buying me a donut at https://www.buymeacoffee.com/khaleelgibran.