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
Sorting:
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 5 months ago
- Check if the process is running with elevated privileges☆43Aug 11, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- Reliably get the terminal window size☆146Feb 2, 2026Updated last month
- Check if the process is running as root user, for example, one started with `sudo`☆79Jul 8, 2022Updated 3 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Check if the process is running as administrator on Windows☆39Aug 11, 2021Updated 4 years ago
- Simple cache config handling for your app or module☆21Sep 14, 2017Updated 8 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated last month
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- 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
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Copy a file☆123Aug 13, 2025Updated 6 months ago
- Sort an array of numbers☆18Sep 18, 2025Updated 5 months ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated 5 months ago
- Unicode symbols with fallbacks for older terminals☆621Oct 28, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Sep 9, 2025Updated 5 months ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Clear a module from the cache☆184Nov 3, 2021Updated 4 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Display a notification (macOS 10.9+)☆90Nov 13, 2025Updated 3 months ago
- Empty the trash☆136Oct 14, 2021Updated 4 years ago
- Check whether a package or organization name is available on npm☆288Sep 15, 2025Updated 5 months ago
- Colored symbols for various log levels☆771May 21, 2025Updated 9 months ago
- Get stdin as a string or buffer☆347Feb 5, 2026Updated 3 weeks ago
- Get the callsite of the caller function☆54Sep 21, 2025Updated 5 months ago
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆170Jan 21, 2026Updated last month