MCPcopy
hub / github.com/coder/mux / isWindowsPlatform

Function isWindowsPlatform

src/node/utils/paths.main.ts:20–22  ·  view source on GitHub ↗

* Determine if current platform is Windows (main process)

()

Source from the content-addressed store, hash-verified

18 * Determine if current platform is Windows (main process)
19 */
20function isWindowsPlatform(): boolean {
21 return platform === "win32";
22}
23
24function getSeparator(): string {
25 return isWindowsPlatform() ? "\\" : "/";

Callers 7

getSeparatorFunction · 0.70
getHomeDirFunction · 0.70
basenameMethod · 0.70
parseMethod · 0.70
abbreviateMethod · 0.70
splitAbbreviatedMethod · 0.70
expandHomeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected