Check if the process is running as root user, for example, one started with `sudo`
☆79Jul 8, 2022Updated 3 years ago
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☆25Apr 17, 2021Updated 5 years ago
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 5 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated last year
- Check if a path is in the current working directory☆23May 3, 2021Updated 5 years ago
- Node's default require extensions as a separate module☆11Oct 27, 2022Updated 3 years ago
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 9 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 4 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 7 months ago
- Check if argv has a specific flag☆96Jul 19, 2021Updated 4 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- 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.
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 9 months ago
- Check if a file path is a text file☆21Apr 30, 2024Updated 2 years ago
- Check if a file path is a compressed file☆19Apr 30, 2024Updated 2 years ago
- Validate JavaScript code and report possible syntax errors☆24Aug 12, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- A tool for respawning node binaries when special flags are present.☆21Dec 30, 2025Updated 5 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated 2 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 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.
- Create a MD5 hash with hex encoding☆46Nov 6, 2023Updated 2 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- ES2015 Number.isSafeInteger() ponyfill☆19Jan 23, 2021Updated 5 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 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 4 years ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 9 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Serverless GPU API endpoints on Runpod - Get Bonus Credits • AdSkip the infrastructure headaches. Auto-scaling, pay-as-you-go, no-ops approach lets you focus on innovating your application.
- Get the version of a binary in semver format☆43Apr 3, 2024Updated 2 years ago
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- Modify the source of an imported module☆28Jan 23, 2021Updated 5 years ago
- Array#filter for older browsers.☆18Feb 23, 2024Updated 2 years ago
- Check if the process is running with elevated privileges☆44Aug 11, 2021Updated 4 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 5 years ago
- Get the fullname of the current user☆48Sep 1, 2023Updated 2 years ago