0.1.0 • Published 8 years ago

json-stringify-plus v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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