0.1.0 • Published 8 years ago
json-stringify-plus v0.1.0
json-stringify-plus
Convert your JSON objects to a JSON string with single or double quotes.
Install
$ npm install --save json-stringify-plus
Usage
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
0.1.0
8 years ago