Snow 1d0b9c5323 增加了node环境 1 mese fa
..
examples 1d0b9c5323 增加了node环境 1 mese fa
test 1d0b9c5323 增加了node环境 1 mese fa
.npmignore 1d0b9c5323 增加了node环境 1 mese fa
.testem.json 1d0b9c5323 增加了node环境 1 mese fa
.travis.yml 1d0b9c5323 增加了node环境 1 mese fa
LICENCE 1d0b9c5323 增加了node环境 1 mese fa
README.md 1d0b9c5323 增加了node环境 1 mese fa
index.js 1d0b9c5323 增加了node环境 1 mese fa
package.json 1d0b9c5323 增加了node环境 1 mese fa

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