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.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of sudo-block or a related project?
Block users from running your app with root permissions
$ npm install sudo-block
const sudoBlock = require('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
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.