typicode / Jsop
Licence: mit
JSON file reader/writer (powered by Object.observe)
Stars: ✭ 207
Programming Languages
javascript
184084 projects - #8 most used programming language
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].