MCPcopy Index your code
hub / github.com/code-pushup/cli / toUnixPath

Function toUnixPath

packages/utils/src/lib/transform.ts:113–115  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

111}
112
113export function toUnixPath(path: string): string {
114 return path.replace(/\\/g, '/');
115}
116
117export function toUnixNewlines(text: string): string {
118 return platform() === 'win32' ? text.replace(/\r\n/g, '\n') : text;

Callers 15

listNxProjectsFunction · 0.90
addNxTargetFunction · 0.90
addPackageJsonScriptFunction · 0.90
toProjectFunction · 0.90
writeMonorepoConfigsFunction · 0.90
formatGitPathFunction · 0.85
git.int.test.tsFile · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85
existsFunction · 0.85

Calls

no outgoing calls

Tested by 5

readFileFunction · 0.68
writeFileFunction · 0.68
existsFunction · 0.68
mkdirFunction · 0.68
unlinkFunction · 0.68