jack e1a2621c78 update 2 years ago
..
examples e1a2621c78 update 2 years ago
test e1a2621c78 update 2 years ago
.npmignore e1a2621c78 update 2 years ago
.testem.json e1a2621c78 update 2 years ago
.travis.yml e1a2621c78 update 2 years ago
LICENCE e1a2621c78 update 2 years ago
README.md e1a2621c78 update 2 years ago
index.js e1a2621c78 update 2 years ago
package.json e1a2621c78 update 2 years ago

README.md

safe-json-parse

build status dependency status

Parse JSON safely without throwing

Example

var safeParse = require("safe-json-parse")

safeParse("{}", function (err, json) {
    /* we have json */
})

safeparse("WRONG", function (err) {
    /* we have err! */
})

Installation

npm install safe-json-parse

Contributors

  • Raynos

MIT Licenced