{"_id":"@webext-core/match-patterns","_rev":"6-57bd0ac014b4ef5af2cbe2c401f520fa","name":"@webext-core/match-patterns","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@webext-core/match-patterns","version":"1.0.0","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"license":"MIT","_id":"@webext-core/match-patterns@1.0.0","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"dist":{"shasum":"c49ab22d5cd846c20d19dac69d4f1b799f068c41","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.0.0.tgz","fileCount":7,"integrity":"sha512-WiFqWsJY/6jedH0kVgH18gBVNTy5xWbp0dEwQXVzADIymhC48aw9pCEHVPnTmHqppvK6EXIRW34hVKgJ1croeA==","signatures":[{"sig":"MEQCIDeVrTTkCrwN65fWutrjWRJ03sr1cxP1FJVftq1CvOIHAiARGZGKX+gPRUqsv2plhuGW14cRhOdrX/7iK1byONWTmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17573},"main":"lib/index.cjs","type":"module","_from":"file:webext-core-match-patterns-1.0.0.tgz","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"scripts":{"test":"vitest","build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","compile":"tsc --noEmit","test:coverage":"vitest run --coverage","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^..."},"_npmUser":{"name":"_aklinker1","email":"aaronklinker1@gmail.com"},"_resolved":"/private/var/folders/g2/ztr_kd996gv4vv11lxwggz8c0000gn/T/3a562c8f165b4ebadd8f81c85b170a9e/webext-core-match-patterns-1.0.0.tgz","_integrity":"sha512-WiFqWsJY/6jedH0kVgH18gBVNTy5xWbp0dEwQXVzADIymhC48aw9pCEHVPnTmHqppvK6EXIRW34hVKgJ1croeA==","repository":{"url":"git+https://github.com/aklinker1/webext-core.git","type":"git","directory":"packages/match-patterns"},"_npmVersion":"8.15.0","description":"Utilities for working with match patterns.","directories":{},"_nodeVersion":"16.17.0","dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.4.0","jsdom":"^20.0.3","vitest":"^0.24.5","tsconfig":"0.0.0","typescript":"^4.8.4","@vitest/coverage-c8":"^0.24.5"},"_npmOperationalInternal":{"tmp":"tmp/match-patterns_1.0.0_1684597752352_0.3053639061316009","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@webext-core/match-patterns","version":"1.0.1","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"license":"MIT","_id":"@webext-core/match-patterns@1.0.1","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"dist":{"shasum":"d6e9db1827e534f61c4fe2fb90a8a51944de9658","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.0.1.tgz","fileCount":7,"integrity":"sha512-huti7vdxWQ10XlkmEO/nC7gVmzAcxNRj+Kdp+HrnRzh2PY9pv5BLrjL8QXzN5EdJjxP154yr7/Q7+Z6xe0TZDA==","signatures":[{"sig":"MEYCIQCWQJ4HYFav/yHvLpXtshH8788cU6jQY9w68ETWSb7IGgIhANoctoQW8XnajB9BOmTAIVdhPzjTAllwlfdX5GkYKQHX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17566},"main":"lib/index.cjs","type":"module","_from":"file:webext-core-match-patterns-1.0.1.tgz","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"scripts":{"test":"vitest","build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","compile":"tsc --noEmit","test:coverage":"vitest run --coverage","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^..."},"_npmUser":{"name":"_aklinker1","email":"aaronklinker1@gmail.com"},"_resolved":"/tmp/d949cd12977131a923485cba9e922874/webext-core-match-patterns-1.0.1.tgz","_integrity":"sha512-huti7vdxWQ10XlkmEO/nC7gVmzAcxNRj+Kdp+HrnRzh2PY9pv5BLrjL8QXzN5EdJjxP154yr7/Q7+Z6xe0TZDA==","repository":{"url":"git+https://github.com/aklinker1/webext-core.git","type":"git","directory":"packages/match-patterns"},"_npmVersion":"8.19.4","description":"Utilities for working with match patterns.","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.4.0","jsdom":"^20.0.3","vitest":"^0.24.5","tsconfig":"0.0.0","typescript":"^4.8.4","@vitest/coverage-c8":"^0.24.5"},"_npmOperationalInternal":{"tmp":"tmp/match-patterns_1.0.1_1685214079202_0.26205910964353407","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@webext-core/match-patterns","version":"1.0.2","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"license":"MIT","_id":"@webext-core/match-patterns@1.0.2","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"dist":{"shasum":"5a1b681924931207b1fb19605a613cda7ce38af2","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.0.2.tgz","fileCount":7,"integrity":"sha512-ApmXwA2HRCgt/vXaZw8NfyV3hBqsyO7wAork4qgH+AtCJW4uRxHbMruSKJ0Flh/yOGMbrbLixd3E9Yw5dmGygw==","signatures":[{"sig":"MEYCIQDguuL7Te5sFTFe9p880YTDeLe5F4CY7IgDiAwxV8dJ+AIhALv5Q4rgSeooypX3Azhq9K/VtkKgwrfhS7g4JT+stPdA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17812},"main":"lib/index.cjs","type":"module","_from":"file:webext-core-match-patterns-1.0.2.tgz","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"scripts":{"test":"vitest","build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","compile":"tsc --noEmit","test:coverage":"vitest run --coverage","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^..."},"_npmUser":{"name":"_aklinker1","email":"aaronklinker1@gmail.com"},"_resolved":"/tmp/93be3fe74d394b9c16f1b0eeb2dbf111/webext-core-match-patterns-1.0.2.tgz","_integrity":"sha512-ApmXwA2HRCgt/vXaZw8NfyV3hBqsyO7wAork4qgH+AtCJW4uRxHbMruSKJ0Flh/yOGMbrbLixd3E9Yw5dmGygw==","repository":{"url":"git+https://github.com/aklinker1/webext-core.git","type":"git","directory":"packages/match-patterns"},"_npmVersion":"8.19.4","description":"Utilities for working with match patterns.","directories":{},"_nodeVersion":"16.20.2","dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.4.0","jsdom":"^20.0.3","vitest":"^0.24.5","tsconfig":"0.0.0","typescript":"^4.8.4","@vitest/coverage-c8":"^0.24.5"},"_npmOperationalInternal":{"tmp":"tmp/match-patterns_1.0.2_1695993321908_0.10786828852088126","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@webext-core/match-patterns","version":"1.0.3","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"license":"MIT","_id":"@webext-core/match-patterns@1.0.3","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"dist":{"shasum":"d590e5063e21a6a83d245700dfeb5489fbd99a77","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.0.3.tgz","fileCount":7,"integrity":"sha512-NY39ACqCxdKBmHgw361M9pfJma8e4AZo20w9AY+5ZjIj1W2dvXC8J31G5fjfOGbulW9w4WKpT8fPooi0mLkn9A==","signatures":[{"sig":"MEYCIQDx32nScICJUooOZgwvlZ2ExwV+CCNrAHit0yNtLp9eAQIhALydtaL0TLvL+8CThfAotimzh8TuIEOaazEQbC/qKWEF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17716},"main":"lib/index.cjs","type":"module","_from":"file:webext-core-match-patterns-1.0.3.tgz","types":"lib/index.d.ts","module":"lib/index.js","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"scripts":{"test":"vitest","build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","compile":"tsc --noEmit","test:coverage":"vitest run --coverage","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^..."},"_npmUser":{"name":"_aklinker1","email":"aaronklinker1@gmail.com"},"_resolved":"/tmp/526c9f23283d079899689de762ad6026/webext-core-match-patterns-1.0.3.tgz","_integrity":"sha512-NY39ACqCxdKBmHgw361M9pfJma8e4AZo20w9AY+5ZjIj1W2dvXC8J31G5fjfOGbulW9w4WKpT8fPooi0mLkn9A==","repository":{"url":"git+https://github.com/aklinker1/webext-core.git","type":"git","directory":"packages/match-patterns"},"_npmVersion":"8.19.4","description":"Utilities for working with match patterns.","directories":{},"_nodeVersion":"16.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.4.0","vitest":"^0.24.5","tsconfig":"0.0.0","typescript":"^4.8.4","@vitest/coverage-c8":"^0.24.5"},"_npmOperationalInternal":{"tmp":"tmp/match-patterns_1.0.3_1702743988438_0.026075857149933546","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@webext-core/match-patterns","version":"1.1.0","keywords":["browser","browser-extension","chrome","chrome-extension","content","extension","firefox","match","pattern","safari","script","web-ext","web-extension","webext"],"license":"MIT","_id":"@webext-core/match-patterns@1.1.0","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"dist":{"shasum":"9f4ffdb6321cbb5dd7a24dcaf5159d443ce6d84a","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-1.1.0.tgz","fileCount":7,"integrity":"sha512-vebVVbcOyva4jyvljIzRJwjFi/OKMLr96LIIxiPeXfA38gE4Z3+H6Y9DwRmn7pWErJGNNHU6XOhOb5ZwicGs7Q==","signatures":[{"sig":"MEUCIQDKVexq4OSyJjQTjI0TuVg8MdN65gsbEAPLhjiQd5aKlAIgf3pd0X/vlHTEG/j+iZXL8KLP2nLXw1xdBwKnWlxeNc4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@webext-core%2fmatch-patterns@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15427},"main":"lib/index.cjs","type":"module","types":"lib/index.d.mts","buildc":{"outDir":"lib"},"module":"lib/index.mjs","engines":{"node":"*"},"exports":{".":{"import":{"types":"./lib/index.d.mts","default":"./lib/index.mjs"},"require":{"types":"./lib/index.d.cts","default":"./lib/index.cjs"}}},"gitHead":"11f3c466726a239ab0bb3cc224fa50b36cf8a789","scripts":{"test":"buildc --deps-only -- bun test","build":"buildc -- tsdown","check":"bun run build && check","prepack":"bun run build","test:coverage":"buildc --deps-only -- bun test --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:89b52354-c877-497a-a745-ba852720d5c5"}},"repository":{"url":"git+https://github.com/aklinker1/webext-core.git","type":"git","directory":"packages/match-patterns"},"_npmVersion":"11.13.0","description":"Utilities for working with match patterns.","directories":{},"sideEffects":false,"_nodeVersion":"24.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"catalog:","publint":"catalog:","tsconfig":"workspace:*","typescript":"catalog:"},"_npmOperationalInternal":{"tmp":"tmp/match-patterns_1.1.0_1782848498940_0.7926956203192397","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@webext-core/match-patterns","version":"2.0.0","description":"Utilities for working with match patterns.","keywords":["browser","browser-extension","chrome","chrome-extension","content","extension","firefox","match","pattern","safari","script","web-ext","web-extension","webext"],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"type":"module","sideEffects":false,"module":"dist/index.mjs","types":"dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"publishConfig":{"access":"public"},"scripts":{"build":"buildc -- tsdown","test":"buildc --deps-only -- bun test","test:coverage":"buildc --deps-only -- bun test --coverage","check":"bun run build && check","prepack":"bun run build"},"devDependencies":{"publint":"catalog:","tsconfig":"workspace:*","tsdown":"catalog:","typescript":"catalog:"},"engines":{"node":"*"},"gitHead":"65626157c7a7ee3ac400b10df719beb1cc62ab78","_id":"@webext-core/match-patterns@2.0.0","bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-EsyMMKfQuSE4rWCjP/TifwvUWlhC/OhiGn5OK3p9F0d57UmtLib0nzguzPKyxM1/kZV7SkE+jYXkE8gsdPRLmw==","shasum":"3fc7c1a652ebe6f23315ca036f0236e7dcc18041","tarball":"https://registry.npmjs.org/@webext-core/match-patterns/-/match-patterns-2.0.0.tgz","fileCount":5,"unpackedSize":9884,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@webext-core%2fmatch-patterns@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID4IlOT7Gz7q0/ID4nsoEFuZP3xHPQcBRsAouo+dr4qqAiAfOKFGuqIUuQlxPWp6dYnmtYL7gODZreNUGBleb6rUog=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:89b52354-c877-497a-a745-ba852720d5c5"}},"directories":{},"maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/match-patterns_2.0.0_1784951019065_0.41588391826083027"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-20T15:49:12.272Z","modified":"2026-07-25T03:43:39.534Z","1.0.0":"2023-05-20T15:49:12.527Z","1.0.1":"2023-05-27T19:01:19.384Z","1.0.2":"2023-09-29T13:15:22.145Z","1.0.3":"2023-12-16T16:26:28.711Z","1.1.0":"2026-06-30T19:41:39.080Z","2.0.0":"2026-07-25T03:43:39.199Z"},"bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"license":"MIT","homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","keywords":["browser","browser-extension","chrome","chrome-extension","content","extension","firefox","match","pattern","safari","script","web-ext","web-extension","webext"],"repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"description":"Utilities for working with match patterns.","maintainers":[{"name":"_aklinker1","email":"aaronklinker1@gmail.com"}],"readme":"# `@webext-core/match-patterns`\n\nUtilities for working with\n[match patterns](https://developer.chrome.com/docs/extensions/mv3/match_patterns/).\n\n```bash\npnpm i @webext-core/match-patterns\n```\n\n```ts\nimport { MatchPattern } from '@webext-core/match-patterns';\n\nconst pattern = new MatchPattern('*://*.google.com/*');\n\npattern.includes('http://google.com/search?q=test'); // true\npattern.includes('https://accounts.google.com'); // true\npattern.includes('https://youtube.com/watch'); // false\npattern.includes('file:///home'); // true\n```\n\n## Get Started\n\nSee\n[documentation](https://webext-core.aklinker1.io/match-patterns/installation) to\nget started!\n\n### Supported Protocols\n\nNot all protocols are supported. Open a PR to add support.\n\n- [x] `<all_urls>`\n- [x] `https` protocol\n- [x] `http` protocol\n- [x] `file` protocol\n- [ ] `ftp` protocol\n- [ ] `urn` protocol\n","readmeFilename":"README.md"}