$ npm install try-catch
Functional try-catch
wrapper
npm i try-catch
const tryCatch = require('try-catch');
const {parse} = JSON;
const [error, result] = tryCatch(parse, 'hello');
if (error)
console.error(error.message);
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE