MCPcopy
hub / github.com/AstrBotDevs/AstrBot / pluginExtensionPath

Function pluginExtensionPath

dashboard/src/api/v1.ts:318–325  ·  view source on GitHub ↗
(pluginPath: string)

Source from the content-addressed store, hash-verified

316}
317
318function pluginExtensionPath(pluginPath: string): string {
319 return pluginPath
320 .replace(/^\/+/, '')
321 .split('/')
322 .filter(Boolean)
323 .map((segment) => encodeURIComponent(segment))
324 .join('/');
325}
326
327export const configProfileApi = {
328 schema() {

Callers 5

getFunction · 0.85
postFunction · 0.85
putFunction · 0.85
patchFunction · 0.85
deleteFunction · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected