https://github.com/vutran/json-stringify-plus
Convert your JSON objects to a JSON string with single or double quotes.
https://github.com/vutran/json-stringify-plus
javascript json stringify
Last synced: about 2 months ago
JSON representation
Convert your JSON objects to a JSON string with single or double quotes.
- Host: GitHub
- URL: https://github.com/vutran/json-stringify-plus
- Owner: vutran
- License: mit
- Created: 2016-07-29T16:00:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T16:00:47.000Z (almost 10 years ago)
- Last Synced: 2025-10-04T01:54:00.676Z (9 months ago)
- Topics: javascript, json, stringify
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-stringify-plus
> Convert your JSON objects to a JSON string with single or double quotes.
## Install
```bash
$ npm install --save json-stringify-plus
```
## Usage
```js
const jsonStringifyPlus = require('json-stringify-plus');
const data = {
foo: 'foo',
};
const doubleQuotes = jsonStringifyPlus(data);
// {"foo":"foo"}
const singleQuotes = jsonStringifyPlus(data, { single: true });
// {'foo':'foo'}}
```
## License
MIT © [Vu Tran](https://github.com/vutran/)