# transient-error

> Mark an error as transient, meaning you can retry

Latest version **1.0.0** (published 2020-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install transient-error
pnpm add transient-error
yarn add transient-error
bun add transient-error
```

## 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.0 |
| Published | 2020-03-27 |
| First published | 2020-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Vincent Weevers |
| Maintainers | vweevers |
| Keywords | error, retry, temporary, transient |

## Links

- npm: https://www.npmjs.com/package/transient-error
- Repository: https://github.com/vweevers/transient-error
- Issues: https://github.com/vweevers/transient-error/issues
- npm.io page: https://npm.io/package/transient-error

## 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

- 1.0.0 (latest) — 2020-03-27

## README

# transient-error

> **Mark an error as transient, meaning you can retry.**

[![npm status](http://img.shields.io/npm/v/transient-error.svg)](https://www.npmjs.org/package/transient-error)
[![node](https://img.shields.io/node/v/transient-error.svg)](https://www.npmjs.org/package/transient-error)
[![Travis build status](https://img.shields.io/travis/vweevers/transient-error.svg?label=travis)](http://travis-ci.org/vweevers/transient-error)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage

```js
const transient = require('transient-error')
const err = transient(new Error('Could not connect'))
```

A consumer can then do:

```js
if (err.transient) {
  // Retry
}
```

Becomes useful when multiple modules use this, as a simple contract.

## Install

With [npm](https://npmjs.org) do:

```
npm install transient-error
```

## License

[MIT](LICENSE.md) © 2020-present Vincent Weevers

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