8000 GitHub - songjianshu/jsop: io.js and Node 0.11 JSON file reader/writer powered by Object.observe · GitHub
[go: up one dir, main page]

Skip to content
songjianshuPublic
forked from typicode/jsop

About

io.js and Node 0.11 JSON file reader/writer powered by Object.observe

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

jsop

One-way data binding for JSON files

jsop is a new kind of JSON file reader/writer powered by Object.observe (requires Node 0.11.13 or io.js 1.0.0).

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'

License

MIT - Typicode

* jsop is short for jsonOpen

About

io.js and Node 0.11 JSON file reader/writer powered by Object.observe

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0