try-json-parse
Just like JSON.parse()
, except it returns undefined
instead of throwing an error for invalid JSON.
Usage
var JSONparse = assert = fs = ; fs;
Motivation
Got tired of writing try {} catch {}.
License
MIT
Just like JSON.parse()
, except it returns undefined
instead of throwing an error for invalid JSON.
var JSONparse = assert = fs = ; fs;
Got tired of writing try {} catch {}.
MIT
npm i try-json-parse
1,776
1.0.0
MIT