Check if the process is running as root user, for example, one started with `sudo`
☆79Sep 18, 2026Updated last month
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☆25Sep 18, 2026Updated last month
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated last month
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Detect the dominant newline character of a string☆56Sep 18, 2026Updated last month
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Lowercase the keys of an object☆42Sep 18, 2026Updated last month
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- A module which will endeavor to guess your terminal's level of color support.☆23Oct 18, 2018Updated 8 years ago
- Try to guess if your terminal supports unicode☆18Dec 16, 2020Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Check if argv has a specific flag☆95Sep 18, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last month
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 3 years ago
- Check if a value is a regular expression☆26Sep 18, 2026Updated last month
- 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.
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated last month
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- The Node.js `util.deprecate()` function with browser support☆37Nov 11, 2018Updated 7 years ago
- Transform the first chunk in a stream☆28Sep 18, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- A tool for respawning node binaries when special flags are present.☆21Sep 25, 2026Updated last month
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 18, 2026Updated last month
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- Object of "void elements" as defined by the WHATWG HTML Standard.☆24Oct 28, 2022Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 years ago
- Check if a file path is a text file☆21Sep 18, 2026Updated last month
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 3 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Pluck a property out of an object in an Array.prototype callback☆14Jul 12, 2016Updated 10 years ago
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- DES for browserify☆10Dec 21, 2024Updated last year
- Array#filter for older browsers.☆18Feb 23, 2024Updated 2 years ago
- Check if a file path is a binary file☆50Sep 18, 2026Updated last month
- Removes all separators from the end of a string.☆12Dec 12, 2017Updated 8 years ago