Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/snyk/cli
/ isWindowsOperatingSystem
Function
isWindowsOperatingSystem
test/utils.ts:81–83 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
79
* @returns boolean
80
*/
81
export
function
isWindowsOperatingSystem(): boolean {
82
return
platform().indexOf(
'win'
) === 0;
83
}
84
85
/**
86
* Conditionally run a test
if
the condition is true
Callers
15
json-file-output.spec.ts
File · 0.90
readFixture
Function · 0.90
error-catalog.spec.ts
File · 0.90
cli-json-output.spec.ts
File · 0.90
fips.spec.ts
File · 0.90
print-graph.spec.ts
File · 0.90
exitcode.spec.ts
File · 0.90
cli-args.spec.ts
File · 0.90
proxy-behavior.spec.ts
File · 0.90
describe.spec.ts
File · 0.90
update-exclude-policy.spec.ts
File · 0.90
snyk-code-user-journey.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
1
readFixture
Function · 0.72