is-bot

Determines if a user-agent is a bot/spider/crawler.

is-bot

Determines if a user-agent is a bot/spider/crawler.

var isbot = require('is-bot');
var assert = require('assert');
 
assert(isbot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'));
$ npm install is-bot

MIT