Eric Foster 35b96bc934 initial commit 6 years ago
..
examples initial commit 6 years ago
test initial commit 6 years ago
.npmignore initial commit 6 years ago
.testem.json initial commit 6 years ago
.travis.yml initial commit 6 years ago
LICENCE initial commit 6 years ago
README.md initial commit 6 years ago
index.js initial commit 6 years ago
package.json initial commit 6 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