Skip to content

ylecuyer/isBot

Repository files navigation

Build Status Node dependencies status

isBot

A simple JS library that detects bots.

How it works

isBot runs quickly on page load to detect mobile devices; it then creates a JavaScript object with the results.

Bots detected by isBot

The following properies of the isBot object will either be true or false

Googlebot

  • isBot.googlebot

Bingbot

  • isBot.bingbot

Yahoobot

  • isBot.yahoobot

Aggregate Groupings

  • isBot.bot - any bot

node.js usage

#####Installation npm install isbotjs

#####Usage

var isBot = require('isbotjs');
console.log(isBot(req.headers['user-agent']).any);

Based on isMobile by @kaimallea

About

A simple JS library that detects bots.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors