upjson
v1.0.1
Published
upjson, edit and write data to a json file asynchronously using db-like methods with the es6 syntax
Downloads
2
Readme
Why?
- Uses no third party libraries
- Uses asynchronous methods utilizing the es6 syntax
- Fast and reliable
- Easy to use
- Lightweight and flexible
Getting started
1- Install the package using npm (npm i --save-dev upjson
) OR clone this repo
2- Require the package and create your database through the UPJSON_DB class
// Example (uses node.js):
const { UPJSON_DB } = require('upjson');
const db = new UPJSON_DB('your/file/path'); // Don't worry if the file does'nt exist , the init method will fix that
db.init().then(console.log).catch(console.error); // This will create the file if it doesn't exist and makes sure it has the correct format
3- Consult the docs and get going.
Copyright
This work is licensed under the Apache 2.0 license . All rights reserved to their respective owners.