@consumidor-positivo/ts-utils - v1.16.0
    Preparing search index...

    Function isLikelyBot

    • Checks if the current client is likely a bot, crawler, or automated agent. This is a heuristic check and may not catch all bots or may have false positives.

      Returns boolean

      True if likely a bot, false otherwise

      import { isLikelyBot } from '@consumidor-positivo/ts-utils';

      if (isLikelyBot()) {
      console.log('Request from a bot or crawler');
      }