Eric Foster 35b96bc934 initial commit 6 anos atrás
..
examples initial commit 6 anos atrás
test initial commit 6 anos atrás
.npmignore initial commit 6 anos atrás
.testem.json initial commit 6 anos atrás
.travis.yml initial commit 6 anos atrás
LICENCE initial commit 6 anos atrás
README.md initial commit 6 anos atrás
index.js initial commit 6 anos atrás
package.json initial commit 6 anos atrás

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