MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / relative

Function relative

packages/@contentlayer/utils/src/file-paths.ts:102–107  ·  view source on GitHub ↗
(
  from: AbsolutePosixFilePath | string,
  to: AbsolutePosixFilePath | string,
)

Source from the content-addressed store, hash-verified

100export function relative(from: AbsolutePosixFilePath, to: AbsolutePosixFilePath): RelativePosixFilePath
101export function relative(from: AbsolutePosixFilePath, to: string): RelativePosixFilePath
102export function relative(
103 from: AbsolutePosixFilePath | string,
104 to: AbsolutePosixFilePath | string,
105): RelativePosixFilePath {
106 return unknownToRelativePosixFilePath(path.relative(from, to))
107}

Callers 2

writeFilesForCacheFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…