You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Block users from running your app with root permissions. 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`.
@param message - A custom message.
@example
```
import sudoBlock from 'sudo-block';
sudoBlock();
```
*/
export default function sudoBlock(message?: string): void;