1.0.1 • Published 10 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-botUsage
const detectBot = require('detect-bot');
if(detectBot(req.headers['user-agent'])) {
	//run PhantomJS
}License
MIT © Rohit Singhal