UNPKG

github-url-detection

Version:

Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.

68 lines (67 loc) 2 kB
{ "name": "github-url-detection", "version": "11.1.3", "description": "Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.", "keywords": [ "github", "page", "routes", "detect", "test", "extension" ], "repository": "refined-github/github-url-detection", "funding": "https://github.com/sponsors/fregante", "license": "MIT", "author": "Federico Brigante <me@fregante.com> (https://fregante.com)", "sideEffects": false, "type": "module", "exports": "./distribution/index.js", "main": "./distribution/index.js", "types": "./distribution/index.d.ts", "files": [ "distribution/index.js", "distribution/index.d.ts" ], "scripts": { "build": "run-p build:*", "build:esbuild": "esbuild index.ts --bundle --external:github-reserved-names --outdir=distribution --format=esm --drop-labels=TEST", "build:typescript": "tsc", "postbuild:typescript": "tsx add-examples-to-dts.ts", "build:demo": "vite build demo", "try": "esbuild index.ts --bundle --global-name=x --format=iife | pbcopy && echo 'Copied to clipboard'", "fix": "xo --fix", "prepack": "npm run build", "test": "run-p build test:* xo", "test:unit": "vitest", "test:demo": "svelte-check", "watch": "run-p watch:*", "watch:typescript": "tsc --watch --noEmit", "watch:test:unit": "npm run test:unit -- --watch", "watch:demo": "vite preview demo & npm run build:demo -- --watch # vite serve isn't real", "xo": "xo" }, "dependencies": { "github-reserved-names": "^2.1.1" }, "devDependencies": { "@sindresorhus/tsconfig": "^8.1.0", "@sveltejs/vite-plugin-svelte": "^6.2.4", "@types/node": "^25.0.8", "esbuild": "^0.27.2", "globals": "^17.0.0", "npm-run-all": "^4.1.5", "strip-indent": "^4.1.1", "svelte": "^5.46.1", "svelte-check": "^4.3.5", "ts-morph": "^27.0.2", "tsx": "^4.21.0", "typescript": "5.9.3", "vite": "^7.3.1", "vitest": "^4.0.17", "xo": "^1.2.3" }, "engines": { "node": ">=22.18" } }