# @koax/fetch-json

> Fetch json sugar.

Latest version **0.1.1** (published 2016-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @koax/fetch-json
pnpm add @koax/fetch-json
yarn add @koax/fetch-json
bun add @koax/fetch-json
```

## 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.1 |
| Published | 2016-02-05 |
| First published | 2016-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | koax |

## Links

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

## Dependencies (2)

- [@koax/fetch](https://npm.io/package/@koax/fetch.md) ^0.1.2
- [@f/is-object](https://npm.io/package/@f/is-object.md) ^1.1.4

## Recent versions

- 0.1.1 (latest) — 2016-02-05

## README

# fetch-json

[![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 json sugar.

## Installation

    $ npm install @koax/fetch-json

## Usage

```js
import koax from 'koax'
import {fetchEffect} from '@koax/fetch'
import {post} from '@koax/fetch-json'

let app = koax()

app.use(fetchEffect)

app(post('https://slack.com/api/chat.postMessage', {
  token: 'secret',
  channel: 'C1234567890',
  text: 'Hello world'
})).then(res => res.body) // {ok: true ...}
```

## API

### get(url, params)

- `url` - url string
- `params` - parameters to put in body (should we put in url for get?)

**Returns:** FETCH action

### post(url, params)

- `url` - url string
- `params` - parameters to put in body

**Returns:** FETCH action

## License

MIT

[travis-image]: https://img.shields.io/travis/koaxjs/fetch-json.svg?style=flat-square
[travis-url]: https://travis-ci.org/koaxjs/fetch-json
[git-image]: https://img.shields.io/github/tag/koaxjs/fetch-json.svg
[git-url]: https://github.com/koaxjs/fetch-json
[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-json.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@koax/fetch-json

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