Need help with jsop?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

typicode
207 Stars 13 Forks MIT License 44 Commits 0 Opened issues

Description

JSON file reader/writer (powered by Object.observe)

Services available

!
?

Need anything else?

Contributors list

# 333
JavaScr...
process...
Git
exec
39 commits
# 10,100
JavaScr...
koa2
axios
Markdow...
1 commit

jsop

One-way data binding for JSON files

jsop is a JSON file reader/writer powered by Object.observe.

Before

var fs = require('fs')

var config = JSON.parse(fs.readFileSync('config.json')) config.foo = 'bar' fs.writeFile('config.json', JSON.stringify(config), function(err) { if (err) throw err })

After

var jsop = require('jsop')

var config = jsop('config.json') config.foo = 'bar'

Changes are automatically written to file. If file doesn't exist, it will be created.

License

MIT - Typicode

* jsop is short for jsonOpen

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.