Kevin 29b9a0c50c clean && clean html base il y a 5 ans
..
examples 29b9a0c50c clean && clean html base il y a 5 ans
test 29b9a0c50c clean && clean html base il y a 5 ans
.npmignore 29b9a0c50c clean && clean html base il y a 5 ans
.testem.json 29b9a0c50c clean && clean html base il y a 5 ans
.travis.yml 29b9a0c50c clean && clean html base il y a 5 ans
LICENCE 29b9a0c50c clean && clean html base il y a 5 ans
README.md 29b9a0c50c clean && clean html base il y a 5 ans
index.js 29b9a0c50c clean && clean html base il y a 5 ans
package.json 29b9a0c50c clean && clean html base il y a 5 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