Get the name of the current operating system. Example: macOS Sierra
☆149Sep 18, 2026Updated this week
Alternatives and similar repositories for os-name
Users that are interested in os-name are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Get the name of the current operating system☆22Feb 2, 2026Updated 7 months ago
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆48Updated this week
- Get the name and version of a macOS release from the Darwin version☆68Updated this week
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Updated this week
- Lowercase the keys of an object☆42Updated this week
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Reliably get the terminal window size - cross-platform☆28Nov 4, 2023Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Updated this week
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆23Updated this week
- Get a random key from an object☆18Jul 2, 2024Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated this week
- Display an error in a GUI dialog☆22May 3, 2021Updated 5 years ago
- Get all emails in a text file or stdin☆26Feb 2, 2026Updated 7 months ago
- Get the email of an npm user☆14Feb 26, 2024Updated 2 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 5 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get the iTerm2 version☆11Updated this week
- Check if a path is the current working directory☆22Updated this week
- Check if an Array is sorted☆35Aug 11, 2021Updated 5 years ago
- Check if a process is running☆62Nov 4, 2021Updated 4 years ago
- Pick random items from a list☆17Aug 10, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated this week
- Check if a number is a redirect HTTP status code☆25Updated this week
- Get the default browser☆63Updated this week
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Check if an Iterable is empty☆23Sep 14, 2025Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 5 years ago
- Get an array of parent directories including itself☆26Nov 7, 2023Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆64Updated this week
- Modify the values of an object☆28Updated this week
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated this week
- Regular expression for matching a shebang line☆48Updated this week
- Get the URL from a web shortcut file☆15Aug 14, 2021Updated 5 years ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆29Aug 9, 2021Updated 5 years ago
- Lazy number range generator☆82Jan 2, 2024Updated 2 years ago
- Check if a path is in the current working directory☆23Updated this week
- Check if a string is email like☆25Nov 11, 2025Updated 10 months ago
- Open a website in a popup (macOS)☆18Feb 18, 2021Updated 5 years ago
- Get the command history of the user's shell☆87Nov 2, 2025Updated 10 months ago
- Check if a value is a regular expression☆26Updated this week