# graceful-catch

> module for gracefully handling promise rejections within express

Latest version **1.0.1** (published 2017-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install graceful-catch
pnpm add graceful-catch
yarn add graceful-catch
bun add graceful-catch
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-04-26 |
| First published | 2017-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @bcruddy \| github.com/bcruddy |
| Maintainers | bcruddy |

## Links

- npm: https://www.npmjs.com/package/graceful-catch
- Repository: https://github.com/bcruddy/graceful-catch
- Homepage: https://github.com/bcruddy/graceful-catch#readme
- Issues: https://github.com/bcruddy/graceful-catch/issues
- npm.io page: https://npm.io/package/graceful-catch

## Recent versions

- 1.0.1 (latest) — 2017-04-26
- 1.0.0 — 2017-04-26

## README

# graceful-catch
Gracefully handle promise rejections within express routes

### Usage

`$ yarn install graceful-catch --save` or `$ npm install graceful-catch --save`

```javascript
const express = require('express'),
    gracefulCatch = require('graceful-catch'),
    app = express();

app.get('/test', (req, res, next) => {
    somePromise
        .then(success)
        .catch(gracefulCatch(res));
});
```

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