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: Usesxoto lint the main source file,index.js.npm run test-lint: Usesxoto lint the test source files, located intest/.npm run unit: Executestest-lintand runs theavaunit tests usingnycfor coverage.npm report: Generates an HTML coverage report fromnyc.npm run test: Executeslint,unitandreportin that order.
In Progress...