mazey
    Preparing search index...

    Function isLinux

    • Check whether a user agent represents Linux.

      Android user agents are excluded even though they commonly contain the Linux token.

      Usage:

      import { isLinux } from "mazey";

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

      Parameters

      • OptionaluserAgent: string

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

      Returns boolean

      true for recognized Linux 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.