A JSON file reader/writer for Node v4+
In Progress... Basic usage:
const jsonPersist = require('json-persist')(module);
json-persist
uses xo
(with slightly customized configuration) for linting, ava
for unit testing, and nyc
for coverage.
npm run lint
: Usesxo
to lint the main source file,index.js
.npm run test-lint
: Usesxo
to lint the test source files, located intest/
.npm run unit
: Executestest-lint
and runs theava
unit tests usingnyc
for coverage.npm report
: Generates an HTML coverage report fromnyc
.npm run test
: Executeslint
,unit
andreport
in that order.
In Progress...