sindresorhus / os-nameView external linksLinks
Get the name of the current operating system. Example: macOS Sierra
☆148Feb 2, 2026Updated last week
Alternatives and similar repositories for os-name
Users that are interested in os-name are comparing it to the libraries listed below
Sorting:
- Get the name of the current operating system☆21Feb 2, 2026Updated last week
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆47Feb 2, 2026Updated last week
- Get the name and version of a macOS release from the Darwin version☆67Jun 11, 2025Updated 8 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Reliably get the terminal window size - cross-platform☆27Nov 4, 2023Updated 2 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Check if an Array is sorted☆35Aug 11, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Get the default browser☆60Feb 2, 2026Updated last week
- Check if a process is running☆61Nov 4, 2021Updated 4 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 4 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Get all emails in a text file or stdin☆25Feb 2, 2026Updated last week
- Pick random items from a list☆17Aug 10, 2021Updated 4 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated last year
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 4 months ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Check if an Iterable is empty☆23Sep 14, 2025Updated 5 months ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Get an array of parent directories including itself☆26Nov 7, 2023Updated 2 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago