MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / detectOS

Function detectOS

apps/site/util/userAgent.ts:31–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 * @see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion
30 */
31export const detectOS = (): OperatingSystem =>
32 detectOsInUserAgent(navigator?.userAgent);
33
34/**
35 * Determines user platform based on architecture and bitness

Callers 2

useDetectOSFunction · 0.90
userAgent.test.mjsFile · 0.90

Calls 1

detectOsInUserAgentFunction · 0.85

Tested by

no test coverage detected