1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-02 12:00:03 +02:00
Files
2020-02-07 22:55:28 +01:00
..
2019-04-15 10:35:12 +02:00
2020-02-07 22:55:28 +01:00
2019-04-15 10:35:12 +02:00
2020-02-07 22:55:28 +01:00
2020-02-07 22:55:28 +01:00

Try Catch License NPM version Dependency Status Build Status Coverage Status

Functional try-catch wrapper

Install

npm i try-catch

Example

const tryCatch = require('try-catch');
const {parse} = JSON;
const [error, result] = tryCatch(parse, 'hello');

if (error)
    console.error(error.message);

License

MIT