A simple JS library that detects bots.
isBot runs quickly on page load to detect mobile devices; it then creates a JavaScript object with the results.
The following properies of the isBot
object will either be true
or false
isBot.googlebot
-
isMobile.bot
- any bot
#####Installation
npm install isbotjs
#####Usage
var isBot = require('isbotjs');
console.log(isBot(req.headers['user-agent']).any);
Based on isMobile by @kaimallea