Skip to content

Repository files navigation

Try Catch LicenseNPM versionBuild StatusCoverage Status

Functional try-catch wrapper

Install

npm i try-catch

Example

import{tryCatch}from'try-catch';const{parse}=JSON;const[error,result]=tryCatch(parse,'hello');if(error)console.error(error.message);

Related

License

MIT

Releases

Packages

Used by

Contributors

Languages