Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

json-stringify-plus

0.1.0 • Public • Published

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

Keywords

none

Install

npm i json-stringify-plus

DownloadsWeekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar