json-var-file

0.1.7 • Public • Published

json-var-file

Store JSON variable into a file.

NPM Version travis

Install

npm install json-var-file --save

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i json-var-file

Weekly Downloads

0

Version

0.1.7

License

CC-BY-NC-SA-4.0

Last publish

Collaborators

  • arthak