1.0.1 • Published 8 years ago
detect-bot v1.0.1
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