🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More
Socket
Sign inDemoInstall
Socket

@webext-core/match-patterns

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webext-core/match-patterns

Utilities for working with match patterns.

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source

@webext-core/match-patterns

Utilities for working with match patterns.

pnpm i @webext-core/match-patterns
import { MatchPattern } from '@webext-core/match-patterns';

const pattern = MatchPattern('*://*.google.com/*');

pattern.includes('http://google.com/search?q=test'); // true
pattern.includes('https://accounts.google.com'); // true
pattern.includes('https://youtube.com/watch'); // false

Get Started

See documentation to get started!

Supported Protocols

Not all protocols are supported. Open a PR to add support.

  • <all_urls>
  • https protocol
  • http protocol
  • file protocol
  • ftp protocol
  • urn protocol

Keywords

web-extension

FAQs

Package last updated on 16 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts