Android user agents are excluded even though they commonly contain the
Linux token.
Usage:
import { isLinux } from"mazey";
constresult = 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.
Throws
If an explicitly supplied user agent is not a string.
Remarks
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.
Check whether a user agent represents Linux.
Android user agents are excluded even though they commonly contain the
Linuxtoken.Usage: