@xevaltan/freejson
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

FREEJSON - NEW NODEJS JSON FILESYSTEM

Install

npm i --save @xevaltan/freejson

Import

const freejson = require("@xevaltan/freejson");

Start

const freejson = require("@xevaltan/freejson");
const myDb = freejson(`${__dirname}/myDatabase.json`);

// add a key with the value.

myDb()["userID"] = {
  coins: 563,
  xp: 561,
  lvl: 3,
  linkedMCaccount: "Qwerty123",
};

// YOU DON'T HAVE TO SAVE MANUALLY, IT SAVES AUTOMATICALLY, YESSS!!.

// Get key
console.log(mydb().key1.key2);

Why should I use this plugin?

You should use this plugin if you need a fast json file manager

Creator:

  • Xevaltan

Package Sidebar

Install

npm i @xevaltan/freejson

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

1.94 kB

Total Files

4

Last publish

Collaborators

  • xevaltan