# gunner

> Transform RESTful APIs into useful data.

Latest version **0.2.3** (published 2014-06-10) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2014-06-10 |
| First published | 2014-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Abe Haskins |
| Maintainers | abeisgreat |

## Links

- npm: https://www.npmjs.com/package/gunner
- Repository: https://github.com/abeisgreat/Gunner
- Issues: https://github.com/abeisgreat/Gunner/issues
- npm.io page: https://npm.io/package/gunner

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.36.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0

## Recent versions

- 0.2.3 (latest) — 2014-06-10
- 0.2.2 — 2014-06-10
- 0.2.1 — 2014-06-10
- 0.2.0 — 2014-06-04
- 0.1.0 — 2014-06-04

## README

Gunner.js
======

Tackle RESTful data and beat it into a useful format!

For example, load the first 2 pages of pictures on a subreddit:

    var Gunner = require('Gunner');
    (new Gunner("http://www.reddit.com/r/Pics/.json"))
        .projectile("data.children.*.data.url")
        .reloader({after: "data.after"})
        .limit(2)
        .fetcher(function (current, limit) {
            // Called on each HTTP load
            console.log('Fetching ' + current + ' of ' + limit);
        })
        .rapidfire(function (projectile, cannon) {
            // Called once for each link in the subreddit
            console.log(projectile);
        });

For full docs and source-code annotation, see [the documented sources](http://abeisgreat.github.io/Gunner.js/docs/Gunner.html).

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