https://github.com/fabiospampinato/json-oneline-stringify
A little function for stringifying into a single line, in a readable form.
https://github.com/fabiospampinato/json-oneline-stringify
formatted json oneline readable stringify
Last synced: 6 months ago
JSON representation
A little function for stringifying into a single line, in a readable form.
- Host: GitHub
- URL: https://github.com/fabiospampinato/json-oneline-stringify
- Owner: fabiospampinato
- License: mit
- Created: 2023-09-23T17:48:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:49.000Z (over 1 year ago)
- Last Synced: 2024-11-14T13:44:45.364Z (6 months ago)
- Topics: formatted, json, oneline, readable, stringify
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# JSON Oneline Stringify
A little function for stringifying into a single line, in a readable form.
## Install
```sh
npm install --save json-oneline-stringify
```## Usage
```ts
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