Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

isbot

Package Overview
Dependencies
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isbot - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

12

index.d.ts

@@ -12,7 +12,7 @@ /**

*/
export declare const isbot: (userAgent: string | null) => boolean;
export declare const isbot: (userAgent?: string | null) => boolean;
/**
* Create a custom isbot function with a custom pattern.
*/
export declare const createIsbot: (customPattern: RegExp) => (userAgent: string | null) => boolean;
export declare const createIsbot: (customPattern: RegExp) => (userAgent?: string | null) => boolean;
/**

@@ -25,14 +25,14 @@ * Create a custom isbot function with a custom pattern.

*/
export declare const isbotMatch: (userAgent: string | null) => string | null;
export declare const isbotMatch: (userAgent?: string | null) => string | null;
/**
* Find all parts of the user agent that match a bot pattern.
*/
export declare const isbotMatches: (userAgent: string | null) => string[];
export declare const isbotMatches: (userAgent?: string | null) => string[];
/**
* Find the first bot patterns that match the given user agent.
*/
export declare const isbotPattern: (userAgent: string | null) => string | null;
export declare const isbotPattern: (userAgent?: string | null) => string | null;
/**
* Find all bot patterns that match the given user agent.
*/
export declare const isbotPatterns: (userAgent: string | null) => string[];
export declare const isbotPatterns: (userAgent?: string | null) => string[];
{
"name": "isbot",
"version": "4.2.0",
"version": "4.3.0",
"description": "🤖 Recognise bots/crawlers/spiders using the user agent string.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc