# sketch-polyfill-fetch

> A fetch polyfill for sketch

Latest version **0.5.2** (published 2019-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install sketch-polyfill-fetch
pnpm add sketch-polyfill-fetch
yarn add sketch-polyfill-fetch
bun add sketch-polyfill-fetch
```

## 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.5.2 |
| Published | 2019-08-29 |
| First published | 2017-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 64 |
| Author | Mathieu Dutour |
| Maintainers | mathieudutour |
| Keywords | sketch, fetch, polyfill |

## Links

- npm: https://www.npmjs.com/package/sketch-polyfill-fetch
- Repository: https://github.com/skpm/sketch-polyfill-fetch
- Homepage: https://github.com/skpm/sketch-polyfill-fetch#readme
- Issues: https://github.com/skpm/sketch-polyfill-fetch/issues
- npm.io page: https://npm.io/package/sketch-polyfill-fetch

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.5.2 (latest) — 2019-08-29
- 0.5.1 — 2019-08-16
- 0.5.0 — 2019-08-04
- 0.4.6 — 2019-08-04
- 0.4.5 — 2019-04-30
- 0.4.4 — 2019-04-26
- 0.4.3 — 2018-11-10
- 0.4.2 — 2018-11-10
- 0.4.1 — 2018-11-09
- 0.4.0 — 2018-11-09
- 0.3.7 — 2018-09-30
- 0.3.6 — 2018-09-05
- 0.3.5 — 2018-07-25
- 0.3.4 — 2018-07-22
- 0.3.3 — 2018-04-12
- … 5 more at https://npm.io/package/sketch-polyfill-fetch/versions

## README

# sketch-polyfill-fetch

A [fetch](https://developer.mozilla.org/en/docs/Web/API/Fetch_API) polyfill for sketch inspired by [unfetch](https://github.com/developit/unfetch). It is automatically included (when needed) when using [skpm](https://github.com/skpm/skpm).

## Installation

> :warning: There is no need to install it if you are using [skpm](https://github.com/skpm/skpm)!

```bash
npm i -S sketch-polyfill-fetch
```

## Usage

Using skpm:

```js
export default () => {
  fetch("https://google.com")
    .then(response => response.text())
    .then(text => console.log(text))
    .catch(e => console.error(e));
};
```

Without skpm:

```js
const fetch = require("sketch-polyfill-fetch");

var onRun = function() {
  fetch("https://google.com")
    .then(response => response.text())
    .then(text => console.log(text))
    .catch(e => console.error(e));
};
```

> :warning: only https URLs are supported due a MacOS limitation

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