npm.io
3.0.1 • Published 3 years ago

try-catch v3.0.1

Weekly downloads
108,234
License
MIT
Repository
github
Last release
3 years ago

Try Catch License NPM version 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);

Related

  • try-to-catch - functional try-catch wrapper for promises.

License

MIT

gester-cli@infinitebrahmanuniverse/nolb-try@everything-registry/sub-chunk-2975wisdomwritejsonspecathread-itvscode-putoutjsconsolejonnyspawnifytryrequireuseritozcloudcmd@hoalongntc/cloudcmd@meganet/cloudcmd@millionfor/utils@putout/plugin-minify@putout/plugin-putout@putout/plugin-regexp@putout/operator-filesystem@putout/cli-match@putout/engine-loader@putout/engine-parser@putout/engine-reporter@putout/engine-runner@putout/eslint-flat@putout/processor-wasm@putout/processor-yaml@putout/testmock-importmollitiaevenietminify-contentminifynupdatesamadhiputoutputout-processor-typosputassetrunsomeremark-putoutredrunredputreadjsonredforkgoldsteingrizzlyiocmdmadrun@thoughtindustries/eslint-plugin-ti@suptreze/decorators@supertape/engine-loaderall-object-keysaiscmdchangelog-iocloudcmdbeautifilebahtrextescovereslint-plugin-putoutfatlint
3.0.1

3 years ago

3.0.0

5 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.0.0

10 years ago

contact@npm.io