is-ua-bot
An improved user-agent parser to detect bots
Installation
$ npm install is-ua-bot
Usage
const isBot = require('is-ua-bot')
const assert = require('assert')
assert(isBot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'))
assert(!isBot('Android 7.1; Pixel Build/NDE63P)'))
Tests
We have a set of Bot agents in ./test/data/bots.js
and a set of known non-bots in ./text/data/not-bots.js
. Please contribute!
Run tests
npm test
Author
Adam Eivy is a software architect by day and a drawing dad by night. Check out his latest project Beetle Royale or follow him on the interwebs
$Crypto Tipping Jars:
- Litecoin ($LTC): LeMkJv1Xoxnt2YvRgKkNZZJRgZYgGzcSyv
- Bitcoin ($BTC): 1CWDM7dYLoBwJyf2kbGANAmuySwFWC2NZu
- Ethereum ($ETH): 0xAA33bAe03131f3aa36e1de3e4bD53583c41F8d64