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

Readme

Keywords

none

Package Sidebar

Install

npm i json-stringify-plus

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • vutran