isbot.js

0.1.0 • Public • Published

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

Aggregate Groupings

  • isMobile.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

Package Sidebar

Install

npm i isbot.js

Weekly Downloads

1

Version

0.1.0

License

CC0

Last publish

Collaborators

  • ylecuyer