# nofetch

> Not a standard fetch implementation

Latest version **0.1.0** (published 2017-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install nofetch
pnpm add nofetch
yarn add nofetch
bun add nofetch
```

## 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.0 |
| Published | 2017-02-25 |
| First published | 2017-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | egoist |
| Maintainers | rem |

## Links

- npm: https://www.npmjs.com/package/nofetch
- Repository: https://github.com/egoist/nofetch
- Homepage: https://github.com/egoist/nofetch#readme
- Issues: https://github.com/egoist/nofetch/issues
- npm.io page: https://npm.io/package/nofetch

## Dependencies (2)

- [timed-out](https://npm.io/package/timed-out.md) ^4.0.1
- [follow-redirects](https://npm.io/package/follow-redirects.md) ^1.2.1

## Recent versions

- 0.1.0 (latest) — 2017-02-25

## README

# nofetch

[![NPM version](https://img.shields.io/npm/v/nofetch.svg?style=flat)](https://npmjs.com/package/nofetch) [![NPM downloads](https://img.shields.io/npm/dm/nofetch.svg?style=flat)](https://npmjs.com/package/nofetch) [![Build Status](https://img.shields.io/circleci/project/egoist/nofetch/master.svg?style=flat)](https://circleci.com/gh/egoist/nofetch) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)

## Install

```bash
yarn add nofetch
```

## Usage

```js
const nofetch = require('nofetch')

// GET
nofetch('/url')
  .then(res => res.json())

// POST
nofetch('/url', {method: 'post', body: {a: 1}})
  .then(res => res.json())

// Form data
const form = new FormData()
form.append('a', 1)
nofetch('/url', {method: 'post', body: form})
  .then(res => res.json())
```

## API

### nofetch(url, [options])

#### options

##### method:

Type: `string`<br>
Default: `GET`

Request method.

##### headers

Type: `object`

Request headers.

##### body

Request body. can be a string, object, buffer, readable stream

##### timeout

Type: `number` `object`

Request timeout.

##### agent

`agent` option for `http.request`

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**nofetch** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/nofetch/contributors)).

> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)

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