This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

escape-json-node

2.0.1 • Public • Published

⚠️ This package is deprecated.

escape-json-node Logo

Escape nested double quotes and unescape apostrophes within JSON string.

NPM Package Version NPM Package Downloads NPM Package License

Installation

npm install escape-json-node

Usage Example

var escapeJSON = require('escape-json-node');

var JSONString = '{"quoteText": "\'Acceptance says, "True, this is ' +
'my situation at the moment. I\'ll look unblinkingly at the reality of it. ' +
'But I will also open my hands to accept willingly whatever a loving ' +
'Father sends me.""}';

JSONString = escapeJSON(JSONString);

console.log(JSONString);

{"quoteText": "'Acceptance says, \"True, this is my situation at the moment.
I'll look unblinkingly at the reality of it. But I will also open my
hands to accept willingly whatever a loving Father sends me.\""}

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

Distributed under the MIT License.

Package Sidebar

Install

npm i escape-json-node

Weekly Downloads

3,010

Version

2.0.1

License

MIT

Unpacked Size

8.74 kB

Total Files

6

Last publish

Collaborators

  • npm