/is-bot

Node module to determine if a user-agent is a bot/spider/crawler.

Primary LanguageJavaScript

is-bot

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

usage

var isbot = require('is-bot');
var assert = require('assert');

assert(isbot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'));

install

$ npm install is-bot

license

MIT