1.3.3 • Published 7 years ago

json-realtime v1.3.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

:pencil: 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

import jsonr from 'json-realtime'

/**
* Your current file is
* { "greetings": "yo" }
*/

const json = jsonr('./path/to/file.json')

// Return 'yo'
console.log(json.greetings)

// Set greetings
json.greetings = 'hello'

// Set non existing
json.mynumber = 10

// Return 'hello'
console.log(json.greetings)

/**
* Your current file right now
* { "greetings": "hello", "mynumber": 10 }
*/

License

MIT © oknoorap

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago