JSONscore
Edit json file with underscore.js chain method
Installation
$ npm install jsonscore
Usage
var jsonscore = ; /* * alter metadata json file in the root directory * addnew and filter two new json object */var metadata = ; console;
Using lodash
instead of default underscore
library
var jsonscore = ;var _ = ; ;
Custom mixin methods
var jsonscore = ;var _ = ; _; ;
API
jsonscore(filepath, [, options]) return an underscore chain method
- filepath String
- options Object
- defaultValue [Array|Object] | [] default = []
- engine Function | _ default = _
- encoding String | Null default = 'utf8'
- replacer Function | Null default = null JSON format replacer paramter
- space: Number | Null default = null JSON format space paramter
write() write json object back into file return json data
Authors
License
Licensed under the GPL license.