detect-bot
v1.0.1
Published
Detects whether current request is from bot. Mandatory if you want to use PhantomJS.
Downloads
6
Maintainers
Readme
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