1.3.1 • Published 3 years ago
mtjsontools v1.3.1
Welcome To mtjsontools!
===
What does mtjsontools do? mtjsontools is an easy to use JSON helper, it can read / query / write json files.
===
How to install
Just run:
npm i mtjsontools
Example Usages
const JsonTools = require('mtjsontools')
// you need to specify the name of the json file, it needs to be at the top directory same as package.json
const jt = new JsonTools({ fileName: 'test.json' })
// you could write any data you want
jt.write({ name: 'test' })
// for reading all the file
jt.read()
// for querying data
jt.read({ query: 'YOUR_QUERY' })
Thank you!