A little function for stringifying into a single line, in a readable form.
npm install --save json-oneline-stringify
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" }]
MIT © Fabio Spampinato