1.0.1 • Published 5 months ago

json-oneline-stringify v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

JSON Oneline Stringify

A little function for stringifying into a single line, in a readable form.

Install

npm install 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