json-collection

1.1.2 • Public • Published

JSON-Collection

JSON-Collection is a Node.JS Library for managing data. It has been inspired by the Discord.JS Collection.

Installation

Use the package manager npm to install JSON-Collection.

npm i json-collection

Usage

const Collection = require("json-collection");

let data = new Collection();

data.set("name", "value");

console.log(data.get("name"));

You can also store a required file or another Collection inside a Collection.

You can save and load the Data.

const Collection = require("json-collection");

let data = new Collection();

data.save(__dirname + "/data.json");

data.load(__dirname + "/data.json");

If you load the data and instantly want to get a value from it, it might wont work.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU AGPLv3

/json-collection/

    Package Sidebar

    Install

    npm i json-collection

    Weekly Downloads

    0

    Version

    1.1.2

    License

    AGPL-3.0

    Unpacked Size

    3.39 kB

    Total Files

    3

    Last publish

    Collaborators

    • hanyaku