MCPcopy Create free account
hub / github.com/Effect-TS/effect / normalizePackagePath

Function normalizePackagePath

packages/tools/jsdocs/src/Jsdocs.ts:488–490  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

486}
487
488function normalizePackagePath(filePath: string): string {
489 return normalizePathName(filePath).replace(/^\.\//, "./")
490}
491
492function escapeRegExp(value: string): string {
493 return value.replace(/[|\\{}()[\]^$+?.]/g, "\\$&")

Callers 1

Calls 2

normalizePathNameFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected