MCPcopy Index your code
hub / github.com/refined-github/refined-github / getFeatureId

Function getFeatureId

source/helpers/feature-helpers.ts:3–3  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1export const shortcutMap = new Map<string, string>();
2
3export const getFeatureId = (url: string): FeatureId => url.split('/').pop()!.split('.', 1)[0] as FeatureId;
4
5type FeatureHelper = {
6 /** If `import.meta.url` is passed as URL, this will be the feature ID */

Callers 5

addFunction · 0.85
unloadFunction · 0.85
getIdentifiersFunction · 0.85
menuActivatedHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected