package
Block users from running your app with root permissions
npm install sudo-blockGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 4 packages.
64.4 kB
Includes dependencies.
Block users from running your app with root permissions
npm install sudo-blockimport sudoBlock from 'sudo-block';
sudoBlock();When a file containing this function is run with root permissions it will exit and show an error message telling the user how to fix the problem, so they don't have to run it with sudo.
Type: string
A custom message.