jack e1a2621c78 update il y a 2 ans
..
examples e1a2621c78 update il y a 2 ans
test e1a2621c78 update il y a 2 ans
.npmignore e1a2621c78 update il y a 2 ans
.testem.json e1a2621c78 update il y a 2 ans
.travis.yml e1a2621c78 update il y a 2 ans
LICENCE e1a2621c78 update il y a 2 ans
README.md e1a2621c78 update il y a 2 ans
index.js e1a2621c78 update il y a 2 ans
package.json e1a2621c78 update il y a 2 ans

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