kiruthiga 55473b7e7c initial push 5 dní pred
..
examples 55473b7e7c initial push 5 dní pred
test 55473b7e7c initial push 5 dní pred
.npmignore 55473b7e7c initial push 5 dní pred
.testem.json 55473b7e7c initial push 5 dní pred
.travis.yml 55473b7e7c initial push 5 dní pred
LICENCE 55473b7e7c initial push 5 dní pred
README.md 55473b7e7c initial push 5 dní pred
index.js 55473b7e7c initial push 5 dní pred
package.json 55473b7e7c initial push 5 dní pred

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