0.1.7 • Published 8 years ago
json-var-file v0.1.7
json-var-file
Store JSON variable into a file.
Install
npm install json-var-file --saveUsage
var jvf = require('json-var-file');jvf.save(var, object)
jvf.save() store value of object, a JSON variable inside var.json. If a file already exist, current value replace old file.
Example :
jvf.save("lastGoodProject", listing);jvf.get(var)
jvf.get() return a valid JSON, by opening a JSON file called var.json. If no file exist, return false.
Example :
myJSON = jvf.get("lastGoodProject");Dependencies
json-var-file library is a nodeJS module using some usefull NPM modules like :
Licence
CC-BY-NC-SA-4.0 - Arthur Lacoste