datalad-course/node_modules/safe-json-parse
2025-03-21 15:28:44 +01:00
..
examples A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
test A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
.npmignore A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
.testem.json A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
.travis.yml A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
index.js A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
LICENCE A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
package.json A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
README.md A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00

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