1.0.0 • Published 7 months ago

json-oneline-stringify v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

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