Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/json-oneline-stringify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published