# bauer-plugin-fetch

> Plugin for bauer to make http requests.

Latest version **0.2.1** (published 2015-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install bauer-plugin-fetch
pnpm add bauer-plugin-fetch
yarn add bauer-plugin-fetch
bun add bauer-plugin-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.2.1 |
| Published | 2015-11-26 |
| First published | 2015-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yuri Neves Silveira |
| Maintainers | yneves |
| Keywords | multi-thread, multi-core, process, fork, multi-process, cluster, crawler, fetch |

## Links

- npm: https://www.npmjs.com/package/bauer-plugin-fetch
- Repository: https://github.com/yneves/node-bauer-plugin-fetch
- Issues: https://github.com/yneves/node-bauer-plugin-fetch/issues
- npm.io page: https://npm.io/package/bauer-plugin-fetch

## Dependencies (4)

- [request](https://npm.io/package/request.md) ^2.67.0
- [bauer-cache](https://npm.io/package/bauer-cache.md) ^0.1.9
- [bauer-crawler](https://npm.io/package/bauer-crawler.md) ^0.2.6
- [bauer-factory](https://npm.io/package/bauer-factory.md) *

## 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

- 0.2.1 (latest) — 2015-11-26
- 0.2.0 — 2015-09-05
- 0.1.7 — 2015-08-29

## README

# bauer-plugin-fetch

Plugin for `bauer` to make http requests.

## Installation

```
npm install bauer-plugin-fetch
```

## Usage

The popular `request` module is used internally to make the http requests. 

```js
module.exports = function(promise) {
  return promise.fetch("http://httpbin.org").then(function(outputFile) {
    // outputFile contains fetched content
  });
};
```

```js
module.exports = function(promise) {
  return promise.return("http://httpbin.org").fetch().then(function(outputFile) {
    // outputFile contains fetched content
  });
};
```

## Configuration

```js
{
  workers: 1,
  slots: 1,
  delay: 0,
  request: { // default options for request
    method: "GET"
  },
  cache: { // default options for bauer-cache
    json: false,
    expires: "1d",
    file: {
      dir: ".",
      ext: "txt"
    }
  }
}
```

## API Summary

  * `Promise`
    * `.fetch() :Promise`
    * `.fetch(url String) :Promise`
    * `.fetch(urls Array) :Promise`
    * `.fetch(options Object) :Promise`

## License

[MIT](./LICENSE)

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