appendjson
0.1.2 • Public • Published Example
- You need to append to a json file, but sometimes it hasn't been created yet.
- This solves that problem.
var myJson = {
name: {
first: 'Jackson',
last: 'Geller'
}
}
var myFile = 'data.json'
appendjson(myJson, myFile, function() {
console.log('done')
})
Installation
npm install appendjson --save
Use
var appendjson = require('appendjson');
appendjson(jsonObj, filepath, callback)
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.2
1,062
Version History
Package Sidebar
Install
Weekly Downloads