detect-bot

1.0.1 • Public • Published

detect-bot

Detects whether current request is from bot. Mandatory if you want to use PhantomJS.

Install

$ npm install --save detect-bot

Usage

const detectBot = require('detect-bot');
 
if(detectBot(req.headers['user-agent'])) {
    //run PhantomJS
}

License

MIT © Rohit Singhal

Package Sidebar

Install

npm i detect-bot

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • rosinghal