# multi-fetch

> Fetching data on 1 line

Latest version **1.0.0** (published 2017-07-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install multi-fetch
pnpm add multi-fetch
yarn add multi-fetch
bun add multi-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.0 |
| Published | 2017-07-26 |
| First published | 2017-07-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thinnakrit Knoo-Aksorn |
| Maintainers | thinnakrit |
| Keywords | nodejs, react, fetch |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-07-26

## README

# multi-fetch
Fetching data on 1 line

#### Version 1.0
Support raw fotmat
- [x] JSON
- [ ] JAVASCRIPT
- [ ] Text

Support form-data fotmat
- [x] FORM

Support method
- [x] POST
- [x] GET
- [ ] PUT
- [ ] DELETE
- [ ] PATCH
- [ ] COPY
- [ ] HEAD
- [ ] DELETE

#### Using 
```javascript
npm install multi-fetch --save
```
or
```javascript
yarn add multi-fetch
```

Import on React or Nodejs file
React (ES6) / can use async/await
```javascript
import { FETCHING } from 'multi-fetch'
... class {
   async funtion {
      const response = await FETCHING('https://api.domain.com', {foo: '123', bar: '123'}, 'post', 'json');
   }
}

```
Nodejs
```javascript
const FETCHING = require('multi-fetch').FETCHING
async funtion {
  const response = await FETCHING('https://api.domain.com', {foo: '123', bar: '123'}, 'post', 'json');
}
```


Function data

| variable        | type           | require  |
| ------------- |:-------------:| -----:|
| url      | string | yes |
| data      | object     |   yes |
| method | string ('post', 'get')     |    yes |
| format | string ('json', 'form')     |    yes |

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