Skip to content

collin-bchkmr/JSON-Collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published