0.0.10 • Published 9 years ago

koa-no-bot v0.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
9 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

9 years ago

0.0.9

9 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago