Check if the operating system CPU architecture is 64-bit or 32-bit (Supports browsers)
MIT License
Bot releases are hidden (Show)
Published by sindresorhus 12 months ago
🦄
Get the version of a binary in semver format
Check whether a binary version satisfies a semver range
Get the name of the current operating system. Example: macOS Sierra
List of platforms supported by Node.js
Get the operating system CPU architecture
Check if the internet connection is up
Check whether a file can be executed
Check if a string is an IP address
Get the name of a Windows version from the release number: 5.1.2600 → XP
Check if servers are reachable
List of processor architectures supported by Node.js
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
Get or check the current macOS version