Get the name of the current operating system. Example: macOS Sierra
☆149Sep 18, 2026Updated last month
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 8 months ago
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆48Sep 18, 2026Updated last month
- Get the name and version of a macOS release from the Darwin version☆68Sep 18, 2026Updated last month
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Lowercase the keys of an object☆42Sep 18, 2026Updated last month
- Get all emails in a text file or stdin☆26Feb 2, 2026Updated 8 months ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 years ago
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 5 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 5 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Pick random items from a list☆17Aug 10, 2021Updated 5 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Sep 18, 2026Updated last month
- Get the default browser☆63Sep 18, 2026Updated last month
- Check if a process is running☆62Nov 4, 2021Updated 4 years ago
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- Check if an Array is sorted☆35Aug 11, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Detect the dominant newline character of a string☆56Sep 18, 2026Updated last month
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Sep 18, 2026Updated last month
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 5 years ago
- A Node.js module that returns the OS/Distribution name of the environment you are working on☆79Jan 6, 2023Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated last month
- Get user info from a GitHub username☆24Oct 14, 2021Updated 5 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 11 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last month
- Display an error in a GUI dialog☆22May 3, 2021Updated 5 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Check if the process is running as root user, for example, one started with `sudo`☆79Sep 18, 2026Updated last month
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 5 years ago
- Check if a path exists☆26Sep 18, 2026Updated last month
- Check if a value is a function☆29May 3, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Get an array of parent directories including itself☆26Nov 7, 2023Updated 2 years ago