UNPKG

webext-patterns

Version:

Tool to convert the patterns and globs of your WebExtension manifest to regex

72 lines (71 loc) 1.35 kB
{ "name": "webext-patterns", "version": "1.5.1", "description": "Tool to convert the patterns and globs of your WebExtension manifest to regex", "keywords": [ "browser", "chrome", "extension", "firefox", "glob", "permission", "greasemonkey", "user scripts", "globs", "userscript", "match", "webext" ], "repository": "fregante/webext-patterns", "funding": "https://github.com/sponsors/fregante", "license": "MIT", "author": "Federico Brigante <me@fregante.com> (https://fregante.com)", "type": "module", "exports": "./index.js", "types": "./index.d.ts", "files": [ "index.js", "index.d.ts" ], "scripts": { "build": "tsc", "fix": "xo --fix", "lint": "xo", "prepare": "tsc --sourceMap false", "test": "tsc && ava && xo", "watch": "tsc --watch" }, "xo": { "envs": [ "browser", "webextensions" ], "rules": { "unicorn/better-regex": "off" } }, "dependencies": { "escape-string-regexp": "^5.0.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^5.0.0", "@types/chrome": "0.0.268", "ava": "^6.1.3", "sinon": "^18.0.0", "type-fest": "^4.20.0", "typescript": "^5.4.5", "xo": "^0.58.0" }, "engines": { "node": ">=18" }, "webExt": { "sourceDir": "demo-extension", "run": { "startUrl": [ "chrome://extensions/", "https://example.com/" ] } } }