Block users from running your app with root permissions
☆100Aug 31, 2023Updated 2 years ago
Alternatives and similar repositories for sudo-block
Users that are interested in sudo-block 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 the process is running with elevated privileges☆43Aug 11, 2021Updated 4 years ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 6 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Toggle the CLI cursor☆112Jul 26, 2024Updated last year
- Check if the process is running as root user, for example, one started with `sudo`☆79Jul 8, 2022Updated 3 years ago
- Reliably get the terminal window size☆146Feb 2, 2026Updated last month
- Display a notification (macOS 10.9+)☆90Nov 13, 2025Updated 4 months ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Simple cache config handling for your app or module☆21Sep 14, 2017Updated 8 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Copy a file☆123Aug 13, 2025Updated 7 months ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 6 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- ☆32May 11, 2019Updated 6 years ago
- Ensure a function is only called once☆165Feb 2, 2026Updated last month
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated 6 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 2 months ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Copy files☆433Feb 12, 2026Updated last month
- Unicode symbols with fallbacks for older terminals☆621Oct 28, 2024Updated last year
- Add stdin support to any CLI app that accepts file input☆127Aug 17, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Check if the process is running as administrator on Windows☆39Aug 11, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Colored symbols for various log levels☆771May 21, 2025Updated 10 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated last year
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Sep 9, 2025Updated 6 months ago
- Get the callsite of the caller function☆54Sep 21, 2025Updated 6 months ago
- Get stdin as a string or buffer☆348Feb 5, 2026Updated last month
- Sort an array of numbers☆18Sep 18, 2025Updated 6 months ago