mazey
    Preparing search index...

    Function isWindows

    • Check whether a user agent represents Windows.

      Usage:

      import { isWindows } from "mazey";

      const result = isWindows();
      console.log(result);

      Parameters

      • OptionaluserAgent: string

        Optional user-agent string. Defaults to the current browser's user agent.

      Returns boolean

      true for recognized Windows user agents; otherwise false.

      If an explicitly supplied user agent is not a string.

      Safe during SSR and in Node.js. An explicit value is classified without reading current browser signals. User-agent detection is heuristic and spoofable; do not use this result as a security boundary.