0.0.10 • Published 8 years ago

koa-no-bot v0.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

koa-no-bot

NPM version Build Status dependency Status devDependency Status

Switch env per request.

Usage

var koa = require('koa');
var noBot = require('koa-no-bot');

app = koa();
app.use(noBot());

Options

bots

Define callback to be executed.

app = koa();

var bots = [{
  name: "Custom Bots"
  regexp: /(bots|botts)/i
}]
app.use(noBot({ "bots": bots });

callback

Define callback to be executed.

app = koa();
app.use(noBot({ "callback": function(bot, ua){ // Do Something } }));

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. Create new Pull Request

Copyright

Copyright (c) 2015 Daisuke Taniwaki. See LICENSE for details.

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago