📝 JSON Realtime
Read and Write JSON in realtime. You don't need to open and write json twice. It's just magic. It's support nested object too.
Install
Using NPM:
npm install json-realtime
Using Yarn:
yarn add json-realtime
Usage
Example codes below is using ES6 with babel
/*** Your current file is* { "greetings": "yo" }*/ const json = // Return 'yo'console // Set greetingsjsongreetings = 'hello' // Set non existingjsonmynumber = 10 // Return 'hello'console /*** Your current file right now* { "greetings": "hello", "mynumber": 10 }*/
License
MIT © oknoorap