try-catch

WebJar for try-catch

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

try-catch
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

try-catch
WebJar for try-catch
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/coderaiser/try-catch

Download try-catch

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/try-catch/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>try-catch</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/try-catch/
implementation 'org.webjars.npm:try-catch:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/try-catch/
implementation ("org.webjars.npm:try-catch:2.0.1")
'org.webjars.npm:try-catch:jar:2.0.1'
<dependency org="org.webjars.npm" name="try-catch" rev="2.0.1">
  <artifact name="try-catch" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='try-catch', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "try-catch" % "2.0.1"
[org.webjars.npm/try-catch "2.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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);

Related

License

MIT

Versions

Version
2.0.1
2.0.0