{"_id":"root-check","_rev":"8-7736a47d65227771a63469c6be524085","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"},"versions":{"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":"sindresorhus@gmail.com"}],"dist":{"shasum":"c52a794bf0db9fad567536e41898f0c9e0a86697","tarball":"https://registry.npmjs.org/root-check/-/root-check-1.0.0.tgz","integrity":"sha512-lt1ts72QmU7jh1DlOJqFN/le/aiRGAbchSSMhNpLQubDWPEOe0YKCcrhprkgyMxxFAcrEhyfTTUfc+Dj/bo4JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxgm/ZY3ZCEUt2dfZY62wfWhVH/XeHHXkUZisSxFqIdAiEAnPO+odalKjRYMJbBhl1viWEwa9al1PiaVMtl4S37Yf0="}]},"directories":{}},"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":{"integrity":"sha512-r9sl0ZLw27mJHTluboMNs345zqeRkIEthbrK2/1pSnl86XZGrNh58X4LqlS8EIViuOxZzjjvSoeIa7Q7OegrMA==","shasum":"8cc25b12c9503b25f57868a835e7da76a532fab3","tarball":"https://registry.npmjs.org/root-check/-/root-check-2.0.0.tgz","fileCount":4,"unpackedSize":2647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkF+uCRA9TVsSAnZWagAAgM4P/i5odDxrDDvFPyNyjCmz\njmOoUpLRM3n3HndaXu7iOaY9eoikJD03lNCk0e4qlx/iDt4gDV3gg3xTQ5gZ\naeskYZGp3H7/ayfvtaVdbTH1f5tS4HDIUjWsQgHtH+xqnUeKEZ8uNTqfdDvR\ncidF/pZAQl01NxEBCFIFH40/2l93JSxwcyceQ4SMb7sKNn+kpM3VovaSSWSh\n0gpGfziryWLfFLzyU8EmMkzfc+oGIRtk13hhwwdxKD6940wnvxgTD1zrFmxr\nv8HIqL8IE8Pl01A1rKA2WXJoUC6aiDIOjuk0RDNSG9sTCzek+CZ2Ylbm218j\n/538FnovWpGe4nzRmJWdxhmMbL2WN5z+x0vDoMuDKCdGja+YIhCj/2L4//2Q\njqMBrFbtx+nbo69Y9x6KqRBhKKbb9UDAO/bB+lMP7dvg8eDZmkBPfLNZEVnA\nY9DzY4ryVf4PSHoKHUCuo+JNb9EnU7wrfbjAulHKFh71NFrA2nlm0Fh72lWl\nPi/XPEm1tOP1Y794B3AO39T0vVDcoV/8eEdDUYVksctLreHPsiRlHHXUrKIq\ntInKn6hclfwON/rN+fV4F5VOnR4Ud7XWmcqKAP7bDqK5y+Q/0YUYdDGH+FNm\nxRW2FyzyY+DseDHejqMu7NnkEP0rx4hgbrdHyKxKFGWqsz6D2W8Z1YuYOLwc\nOTxF\r\n=vqWr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH06Qnx/64d1rj3ZLRG0kqoNKc7W2rw6X+6+y+eFuCtkCIDh1g2Fjl+2g1UhAqFa+OdHOVjP+ysIBectrWL/0A8SH"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root-check_2.0.0_1620074413962_0.06259126634308676"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-26T14:09:55.121Z","created":"2015-01-07T11:51:10.858Z","1.0.0":"2015-01-07T11:51:10.858Z","2.0.0":"2021-05-03T20:40:14.092Z"},"homepage":"https://github.com/sindresorhus/root-check#readme","keywords":["sudo","root","user","permissions","uid","block","prevent","stop","downgrade","drop","privileges","check"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/root-check.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/root-check/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"shangsinian":true,"rocket0191":true}}