express-bot
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

express-bot

GitHub license Github All Releases GitHub last commit Travis CI

NPM

Crawler(robots) decision middleware for Express (TypeScript)

Install

$ npm install --save express-bot

UserAgent's

  • Twitterbot
  • Google Keyword Suggestion
  • AdsBot-Google
  • Googlebot
  • applebot
  • curl
  • PycURL
  • ....

ALL Bots List -> https://github.com/fkei/express-bot/blob/master/index.js#L9

Use

app.use(require('express-bot')({
  // force dicision using querystring  https://localhost?bot=1 -> hit!!
  querystring: {
    use: true,
    key: 'bot',
    value: '1',
    locals: ...
  },
  // list of UA strings to be added to pre-defined BOTS.
  additionalBots: [
    'MinorBot'
  ]
}));

options (Optional)

Develop

eslint

$ npm run eslint

test

$ npm test

Package Sidebar

Install

npm i express-bot

Weekly Downloads

55

Version

1.0.7

License

MIT

Unpacked Size

10.8 kB

Total Files

7

Last publish

Collaborators

  • fkei
  • noritama
  • cathcheeno