Check if the process is running as root user, for example, one started with `sudo`
☆78Sep 18, 2026Updated this week
Alternatives and similar repositories for is-root
Users that are interested in is-root are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Check if a number is a redirect HTTP status code☆25Updated this week
- Check if a path is the current working directory☆22Updated this week
- Get the user home directory with fallback to the system temp directory☆30Updated this week
- Node's default require extensions as a separate module☆11Updated this week
- Detect the dominant newline character of a string☆55Updated this week
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Lowercase the keys of an object☆42Updated this week
- Check if argv has a specific flag☆94Updated this week
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Updated this week
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Updated this week
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated this week
- Check if a path is inside another path☆40Updated this week
- Transform the first chunk in a stream☆27Updated this week
- Deploy open-source AI quickly and easily - Special Bonus Offer • AdRunpod Hub is built for open source. One-click deployment and autoscaling endpoints without provisioning your own infrastructure.
- Validate JavaScript code and report possible syntax errors☆24Aug 12, 2024Updated 2 years ago
- Check if a file path is a text file☆21Updated this week
- Check if a file path is a compressed file☆19Apr 30, 2024Updated 2 years ago
- Check if a path is in the current working directory☆23Updated this week
- ES2015 Number.isSafeInteger() ponyfill☆19Jan 23, 2021Updated 5 years ago
- Check if a file path is a binary file☆49Updated this week
- Check if a value is a regular expression☆26Updated this week
- Regular expression for matching a shebang line☆48Updated this week
- Create a MD5 hash with hex encoding☆46Updated this week
- 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.
- Create a noop process and get the PID☆14Aug 10, 2021Updated 5 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- The Node.js `util.deprecate()` function with browser support☆37Nov 11, 2018Updated 7 years ago
- Check if an Array is sorted☆35Aug 11, 2021Updated 5 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Updated this week
- Check if your code is running as an npm or yarn script☆66Updated this week
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Get the version of a binary in semver format☆43Updated this week
- Get the fullname of the current user☆47Updated this week
- 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.
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- Modify the values of an object☆28Updated this week
- Check if the process is running with elevated privileges☆44Aug 11, 2021Updated 5 years ago
- Check if a value is an object☆41Updated this week
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆36Jan 24, 2021Updated 5 years ago
- A tool for respawning node binaries when special flags are present.☆20Dec 30, 2025Updated 8 months ago
- Array#filter for older browsers.☆18Feb 23, 2024Updated 2 years ago