npm install --save-dev jsonable
Create a javascript file as your entry point and export a plain old javascript object
named jsonExport
, use javascript as usual to compose your javascript object.
const test = require('./json/test.json')
export const jsonExport = {test}
Then use jsonjs binary to create your json file
jsonjs --entry dist/tests/files/basic-pojo.json.js --out test.json --spaces 5
to create a json file from your pojo
All code is linted with javascript standard, PR's with lint errors will not be accepted.
run npm run watch
to begin watching the source, compiling, and running the unit tests.