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

Function normalizePackagePath

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

Source from the content-addressed store, hash-verified

500}
501
502function normalizePackagePath(filePath: string): string {
503 return normalizePathName(filePath).replace(/^\.\//, "./")
504}
505
506function escapeRegExp(value: string): string {
507 return value.replace(/[|\\{}()[\]^$+?.]/g, "\\$&")

Callers 1

Calls 2

normalizePathNameFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected