Popularity
1.9
Growing
Activity
4.1
-
98
6
12

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Command Line Utilities     Prevent     User     Stop     Block     Uid     Permissions     Root     Sudo    
Latest version: v3.0.0

sudo-block alternatives and similar modules

Based on the "Command Line Utilities" category.
Alternatively, view sudo-block alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of sudo-block or a related project?

Add another 'Command Line Utilities' Module

README

sudo-block Build Status

Block users from running your app with root permissions

Install

$ npm install sudo-block

Usage

const sudoBlock = require('sudo-block');

sudoBlock();

API

sudoBlock([message])

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.

message

Type: string

Custom message.

License

MIT © Sindre Sorhus


*Note that all licence references and agreements mentioned in the sudo-block README section above are relevant to that project's source code only.