# flumm-fetch

> ## Usage Example ### async / await ```javascript import fetch from "flumm-fetch";

Latest version **1.0.1** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install flumm-fetch
pnpm add flumm-fetch
yarn add flumm-fetch
bun add flumm-fetch
```

## 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 | 2020-02-13 |
| First published | 2019-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Flummi |
| Maintainers | flummi, jkhsjdhjs |
| Keywords | fetch |

## Links

- npm: https://www.npmjs.com/package/flumm-fetch
- Repository: https://github.com/kein-Bot/flumm-fetch
- Homepage: https://github.com/kein-Bot/flumm-fetch#readme
- Issues: https://github.com/kein-Bot/flumm-fetch/issues
- npm.io page: https://npm.io/package/flumm-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

- 1.0.1 (latest) — 2020-02-13
- 1.0.0 — 2019-11-25

## README

# flumm-fetch

## Usage Example
### async / await
```javascript
import fetch from "flumm-fetch";

// GET
(async () => {
  const query = await fetch("https://example.com/file.json");
  const result = await query.json();
  console.log(result);
})();

// POST
(async () => {
  const opts = {
    method: "POST",
    body: {
      name: "John Doe",
      password: "pwd"
    }
  };
  const query = await fetch("https://example.com/file.json", opts);
  const result = await query.json();
  console.log(result);
})();
```
### promises
```javascript
import fetch from "flumm-fetch";

// GET
fetch("https://google.de")
  .then(res => res.text())
  .then(res => console.log(res))
  .catch(console.error);

// POST
const opts = {
  method: "POST",
  body: {
    name: "John Doe",
    password: "pwd"
  }
};
fetch("https://google.de", opts)
  .then(res => res.text())
  .then(res => console.log(res))
  .catch(console.error);
```

## License
This project is licensed under the MIT license, see [LICENSE](LICENSE).

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