package
Try to downgrade the permissions of a process with root privileges and block access if it fails
npm install root-checkGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 7 packages.
72.3 kB
Includes dependencies.
Try to downgrade the permissions of a process with root privileges and block access if it fails

$ npm install root-checkimport rootCheck from 'root-check';
rootCheck();See the sudo-block API.