Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 768 Bytes

File metadata and controls

39 lines (25 loc) · 768 Bytes

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