# abort-helpers

> AbortController polyfill and utilities

Latest version **1.2.3** (published 2022-09-15) · 0 weekly downloads

## Install

```sh
npm install abort-helpers
pnpm add abort-helpers
yarn add abort-helpers
bun add abort-helpers
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2022-09-15 |
| First published | 2021-11-04 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mailmindlin |
| Maintainers | mailmindlin |
| Keywords | AbortController, AbortSignal, polyfill |

## Links

- npm: https://www.npmjs.com/package/abort-helpers
- Repository: https://github.com/mailmindlin/abort-helpers
- Homepage: https://github.com/mailmindlin/abort-helpers#readme
- Issues: https://github.com/mailmindlin/abort-helpers/issues
- npm.io page: https://npm.io/package/abort-helpers

## Recent versions

- 1.2.3 (latest) — 2022-09-15
- 1.2.2 — 2022-09-15
- 1.2.1 — 2022-09-15
- 1.2.0 — 2022-09-15
- 1.1.0 — 2021-11-11
- 1.0.0 — 2021-11-04

## README

# abort-helpers

This includes a polyfill for [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController), and also some utilities

## AbortError

You can use AbortError like a generic error emitted from an AbortController. This should even work for `DOMException`s.

```
try {
	checkAbort(AbortSignal.abort());
} catch (e) {
	if (e instanceof AbortError) {
		// true
	}
}
```

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