0.2.3 • Published 10 years ago

gunner v0.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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.

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago