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

Function isPathInside

packages/tools/jsdocs/src/Jsdocs.ts:721–724  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

719}
720
721function isPathInside(parent: string, child: string): boolean {
722 const relative = path.relative(parent, child)
723 return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative))
724}
725
726function packageSpecifier(packageName: string, subpath: string): string {
727 return subpath === "" ? packageName : `${packageName}/${subpath}`

Callers 2

resolveBarrelImportFunction · 0.85
resolveJSDocImportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected