is-crawler

detect crawler

detect crawler

var isCrawler = require('is-crawler');
 
if (isCrawler('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)')) {
  console.log('is crawler');
};

The MIT License