https://github.com/ambar/abort-polyfill
https://github.com/ambar/abort-polyfill
abort-polyfill abortcontroller abortsignal fetch
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ambar/abort-polyfill
- Owner: ambar
- License: mit
- Created: 2021-02-19T05:34:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T11:56:49.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T02:16:37.529Z (about 1 year ago)
- Topics: abort-polyfill, abortcontroller, abortsignal, fetch
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# abort-polyfill
- Polyfill AbortController and AbortSignal
- Polyfill signal options to legacy fetch
[](https://bundlephobia.com/result?p=abort-polyfill)
## Install
```
npm install abort-polyfill
```
## Usage
Any browsers (IE 10+):
```js
import 'cross-fetch/polyfill'
import 'abort-polyfill'
```
Node < 15:
```js
import 'cross-fetch/polyfill'
import 'event-target-polyfill'
import 'abort-polyfill'
```
Node >= 15:
```js
import 'cross-fetch/polyfill'
// no need to import polyfill
```