{"_id":"root-check","_rev":"2763807","name":"root-check","description":"Try to downgrade the permissions of a process with root privileges and block access if it fails","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-02-14T08:03:33.000Z","created":"2015-01-07T11:51:10.858Z","2.0.0":"2021-05-03T20:40:14.092Z","1.0.0":"2015-01-07T11:51:10.858Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/root-check.git"},"versions":{"2.0.0":{"name":"root-check","version":"2.0.0","description":"Try to downgrade the permissions of a process with root privileges and block access if it fails","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/root-check.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["sudo","root","user","permissions","uid","block","prevent","stop","downgrade","drop","privileges","check"],"dependencies":{"downgrade-root":"^2.0.0","sudo-block":"^4.0.0"},"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"gitHead":"cb603e679cad1c1d3ea5dbfcef09aa278189876d","bugs":{"url":"https://github.com/sindresorhus/root-check/issues"},"homepage":"https://github.com/sindresorhus/root-check#readme","_id":"root-check@2.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"8cc25b12c9503b25f57868a835e7da76a532fab3","size":1463,"noattachment":false,"key":"/root-check/-/root-check-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-check/download/root-check-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root-check_2.0.0_1620074413962_0.06259126634308676"},"_hasShrinkwrap":false,"publish_time":1620074414092,"_cnpm_publish_time":1620074414092,"_cnpmcore_publish_time":"2021-12-16T13:06:53.968Z"},"1.0.0":{"name":"root-check","version":"1.0.0","description":"Try to downgrade the permissions of a process with root privileges and block access if it fails","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/root-check"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["sudo","root","user","permissions","uid","block","prevent","stop","downgrade","drop","privileges","check"],"dependencies":{"downgrade-root":"^1.0.0","sudo-block":"^1.1.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"2e97094533d31fc101ceca71207a83865f21117d","bugs":{"url":"https://github.com/sindresorhus/root-check/issues"},"homepage":"https://github.com/sindresorhus/root-check","_id":"root-check@1.0.0","_shasum":"c52a794bf0db9fad567536e41898f0c9e0a86697","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"c52a794bf0db9fad567536e41898f0c9e0a86697","size":1569,"noattachment":false,"key":"/root-check/-/root-check-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-check/download/root-check-1.0.0.tgz"},"directories":{},"publish_time":1420631470858,"_hasShrinkwrap":false,"_cnpm_publish_time":1420631470858,"_cnpmcore_publish_time":"2021-12-16T13:06:54.145Z"}},"readme":"# root-check\n\n> Try to [downgrade the permissions](https://github.com/sindresorhus/downgrade-root) of a process with root privileges and [block access](https://github.com/sindresorhus/sudo-block) if it fails\n\n![](https://github.com/sindresorhus/sudo-block/raw/main/screenshot.png)\n\n## Install\n\n```\n$ npm install root-check\n```\n\n## Usage\n\n```js\nimport rootCheck from 'root-check';\n\nrootCheck();\n```\n\n## API\n\nSee the [`sudo-block` API](https://github.com/sindresorhus/sudo-block#api).\n","_attachments":{},"homepage":"https://github.com/sindresorhus/root-check#readme","bugs":{"url":"https://github.com/sindresorhus/root-check/issues"},"license":"MIT"}