jsonable

0.0.3 • Public • Published

jsonable

Composable javascript

npm install --save-dev jsonable

Usage

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

Contributing

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.

Readme

Keywords

none

Package Sidebar

Install

npm i jsonable

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • ericwooley