node-sjson
Parsing JSON without raising your voice
I got tired of writing my JSON.parse(...)
in try...catch
blocks to prevent wrong inputs
to raise an exception, so this is the poor man's
solution to do it without too much fuss.
Installation
npm install sjson
Usage
var sjson =// {a: 1}// undefined// 'fallback value'
Tests
Simply run npm test
in the root of the repo.