# try-call

> Functional try-catch

Latest version **0.0.2** (published 2016-03-23) · BSD license · 0 weekly downloads

## Install

```sh
npm install try-call
pnpm add try-call
yarn add try-call
bun add try-call
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-03-23 |
| First published | 2015-10-02 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | azer |
| Maintainers | nj48 |
| Keywords | try, catch, optimization |

## Links

- npm: https://www.npmjs.com/package/try-call
- Repository: https://github.com/n-johnson/try-call
- Homepage: https://github.com/n-johnson/try-call#readme
- Issues: https://github.com/n-johnson/try-call/issues
- npm.io page: https://npm.io/package/try-call

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-03-23
- 0.0.1 — 2016-03-23
- 2.0.0 — 2016-03-22
- 0.0.0 — 2015-10-02

## README

## try-call

Functional try-catch for cleaner code & [optimization](https://github.com/petkaantonov/bluebird/wiki/Optimization-killers).

## Install

```bash
$ npm install try-call
```

## Usage

```js
var call = require('try-call');

var doc = '{ "foo": 123 }';
var parse = JSON.parse.bind(null, doc);

call(parse, function (error, doc) {
  error
  // => undefined

  doc
  // => { foo: 123}
})
```

---
_Source: https://npm.io/package/try-call · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
