# @koax/fetch

> Fetch effect driver and action creators.

Latest version **0.1.3** (published 2016-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @koax/fetch
pnpm add @koax/fetch
yarn add @koax/fetch
bun add @koax/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.1.3 |
| Published | 2016-02-09 |
| First published | 2016-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | koax |

## Links

- npm: https://www.npmjs.com/package/@koax/fetch
- Repository: https://github.com/koaxjs/fetch
- Homepage: https://github.com/koaxjs/fetch#readme
- Issues: https://github.com/koaxjs/fetch/issues
- npm.io page: https://npm.io/package/@koax/fetch

## Dependencies (1)

- [sane-fetch](https://npm.io/package/sane-fetch.md) ^1.0.0

## Recent versions

- 0.1.3 (latest) — 2016-02-09
- 0.1.2 — 2016-02-05
- 0.1.1 — 2016-02-05

## README

# fetch

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Fetch effect driver and action creator.

## Installation

    $ npm install @koax/fetch

## Usage

```js
import koax from 'koax'
import {fetch, fetchEffect} from '@koax/fetch'

let app = koax()
app.use(fetchEffect())

app(fetch('google.com')).then((res) => res.status) // => 200

```

## API

### fetch(url, params)
Action creator. See [sane-fetch](//github.com/joshrtay/sane-fetch) for more details.

- `url` - url
- `params` - request paramaters

**Returns:** action object

### fetchEffect()
Effect driver.

**Returns:** koax middleware

## License

MIT

[travis-image]: https://img.shields.io/travis/koaxjs/fetch.svg?style=flat-square
[travis-url]: https://travis-ci.org/koaxjs/fetch
[git-image]: https://img.shields.io/github/tag/koaxjs/fetch.svg
[git-url]: https://github.com/koaxjs/fetch
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@koax/fetch.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@koax/fetch

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