1.0.11 • Published 3 years ago

skincare-json v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Skincare JSON ✨🧽

AGPL

Installation 📜

npm install skincare-json

or

yarn add skincare-json

It does the cleaning treatment and the conversion of a JSON.

Turn this:

{ 
  "whatever": ",
  "whatever2": "easy "peasy" ""lemon squeezy"",
  "whatever3": "\rwhata"",
}

Into this:

{ 
  "whatever": "",
  "whatever2": "easy peasy lemon squeezy,
  "whatever3": "whata",
}

Examples

const skinJSON = require('skincare-json');
const jsonDirty = '{
      "whatever": ",
      "whatever2": "easy "peasy" ""lemon squeezy"",
      "whatever3": "\rwhata"",
    }'
    try {
      const jsonClean = JSON.parse(jsonDirty);
    } catch (error) {
      const jsonClean = skinJSON.parse(jsonDirty);
    }
console.log(jsonClean);

🙋‍♂️ Author

License

This project is licensed under the GNU GPL V3 - see the LICENSE.md file for details

1.0.9

3 years ago

1.0.8

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago