Skip to content
/ upjson Public

upjson, edit and write data to a json file asynchronously using db-like methods with the es6 syntax

License

Notifications You must be signed in to change notification settings

Mahdios/upjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Header

Edit and write data to a json file asynchronously using db-like methods . Fast and easy!

Why? start with 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.

About

upjson, edit and write data to a json file asynchronously using db-like methods with the es6 syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published