is-ua-bot
An improved user-agent parser to detect bots
Installation
$ npm install is-ua-bot
Usage
const isBot = // just for testing:const assert = // identifies googlebot as bot (returns true) // Android Pixel is not a bot (returns false)
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
worthy of a tip? ⚡ Lightning Bitcoin Tips Accepted https://tippin.me/@antic