Block users from running your app with root permissions
☆96Sep 18, 2026Updated this week
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☆44Aug 11, 2021Updated 5 years ago
- Check if a value is a Blob☆24Updated this week
- Check if a number is a redirect HTTP status code☆25Updated this week
- Check if it's the first time the process is run☆83Sep 12, 2025Updated last year
- Toggle the CLI cursor☆114Updated 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.
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated this week
- Reliably get the terminal window size☆149Updated this week
- Check if a string is a valid filename☆60Aug 28, 2026Updated 3 weeks ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated this week
- Modify the filename in a path☆17Updated this week
- Simple cache config handling for your app or module☆20Sep 14, 2017Updated 9 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Copy a file☆122Jul 25, 2026Updated last month
- Create a noop process and get the PID☆14Aug 10, 2021Updated 5 years ago
- 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.
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆23Updated this week
- ☆32May 11, 2019Updated 7 years ago
- Modify the values of an object☆28Updated this week
- Ensure a function is only called once☆166Updated this week
- Get free disk space info from `df -kP`☆63Updated this week
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Updated this week
- Gracefully restore the CLI cursor on exit☆41Updated this week
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated last year
- Strip redundant indentation and indent the string☆55Updated this week
- 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.
- Copy files☆438Sep 1, 2026Updated 3 weeks ago
- Get the version of a binary in semver format☆43Updated this week
- Unicode symbols with fallbacks for older terminals☆633Updated this week
- Add stdin support to any CLI app that accepts file input☆127Aug 17, 2021Updated 5 years ago
- Get a random property from an object☆15Jul 2, 2024Updated 2 years ago
- Check if the process is running as administrator on Windows☆39Aug 11, 2021Updated 5 years ago
- Get a random key from an object☆18Jul 2, 2024Updated 2 years ago
- Colored symbols for various log levels☆770Updated this week
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated 2 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.
- Get stdin as a string or buffer☆349Updated this week
- Try to downgrade the permissions of a process with root privileges☆17Updated this week
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Updated this week
- Check if a value is a regular expression☆26Updated this week
- Get the callsite of the caller function☆53Updated this week
- Sort an array of numbers☆18Updated this week
- Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.☆1,165Updated this week