json-oneline-stringify
v1.0.0
Published
A little function for stringifying into a single line, in a readable form.
Downloads
113
Maintainers
Readme
JSON Oneline Stringify
A little function for stringifying into a single line, in a readable form.
Install
npm install --save json-oneline-stringify
Usage
import stringify from 'json-oneline-stringify';
// It formats objects and arrays nicely, with spaces for readability
const input = [123, { value: 'string' }];
const output = stringify ( input ); // => '[123, { "value": "string" }]
License
MIT © Fabio Spampinato