bifocal/node_modules/safe-json-parse
Jean Viscogliosi-Pate f8836547f1 Broken socials 2024-06-19 06:56:58 -07:00
..
examples Broken socials 2024-06-19 06:56:58 -07:00
test Broken socials 2024-06-19 06:56:58 -07:00
.npmignore Broken socials 2024-06-19 06:56:58 -07:00
.testem.json Broken socials 2024-06-19 06:56:58 -07:00
.travis.yml Broken socials 2024-06-19 06:56:58 -07:00
LICENCE Broken socials 2024-06-19 06:56:58 -07:00
README.md Broken socials 2024-06-19 06:56:58 -07:00
index.js Broken socials 2024-06-19 06:56:58 -07:00
package.json Broken socials 2024-06-19 06:56:58 -07:00

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