{"_id":"is-root","_rev":"15-875222a524157359ae93c85610e12ab4","name":"is-root","description":"Check if the process is running as root user, for example, one started with `sudo`","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"is-root","version":"0.1.0","description":"Check if the process is running as root user. Eg. started with `sudo`.","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-root"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["sudo","root","user","permissions","uid","process","posix"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"homepage":"https://github.com/sindresorhus/is-root","_id":"is-root@0.1.0","dist":{"shasum":"825e394ab593df2d73c5d0092fce507270b53dcb","tarball":"https://registry.npmjs.org/is-root/-/is-root-0.1.0.tgz","integrity":"sha512-glOEx7ZLB6vnwbosg0aABikTfM6jC2X1ClbhFQd4hK4Q6cuNyfr1T2af4a/BAq1n3VxE3cfJusT137yjFlWlwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8DFL7dWHCrjDqTARFHn215C/lAYZsBs1d24fJDDZrWAiEA/I1cGEBUfZC6+XHgZUbhbf9lLu4nvM1gvLiufHZIXtE="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"is-root","version":"1.0.0","description":"Check if the process is running as root user, eg. started with `sudo`.","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-root"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["sudo","root","user","permissions","uid","process","posix"],"devDependencies":{"mocha":"*"},"gitHead":"6afc5207f2eb1cedb3c0e2f62e4adcfdba6f1455","bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"homepage":"https://github.com/sindresorhus/is-root","_id":"is-root@1.0.0","_shasum":"07b6c233bc394cd9d02ba15c966bd6660d6342d5","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"07b6c233bc394cd9d02ba15c966bd6660d6342d5","tarball":"https://registry.npmjs.org/is-root/-/is-root-1.0.0.tgz","integrity":"sha512-1d50EJ7ipFxb9bIx213o6KPaJmHN8f+nR48UZWxWVzDx+NA3kpscxi02oQX3rGkEaLBi9m3ZayHngQc3+bBX9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOhXgwd7UvE0cBLuJyUHZ7WKS11f4jXk/t5fKBAQahaAiAKyuCwM8ajCkNJybg+vlu/D93Hn1u7GOxMFbQ7VosJgg=="}]},"directories":{}},"2.0.0":{"name":"is-root","version":"2.0.0","description":"Check if the process is running as root user, for example, one started with `sudo`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-root.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["sudo","root","user","permissions","uid","process","posix"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"4e911196ea711de0741cc272953646e2a6ba28d9","bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"homepage":"https://github.com/sindresorhus/is-root#readme","_id":"is-root@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-F/pJIk8QD6OX5DNhRB7hWamLsUilmkDGho48KbgZ6xg/lmAZXHxzXQ91jzB3yRSw5kdQGGGc4yz8HYhTYIMWPg==","shasum":"838d1e82318144e5a6f77819d90207645acc7019","tarball":"https://registry.npmjs.org/is-root/-/is-root-2.0.0.tgz","fileCount":4,"unpackedSize":2354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwbPdnaM3ENxJJSTEdYsI/IzLHXTHLLZj69F1v4OHP1AiEAmi9zg8coxuFc4wSYpUWA8JvHnXudAAVkjPXgan7VQaY="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_2.0.0_1521732401352_0.8874067575189113"},"_hasShrinkwrap":false},"2.1.0":{"name":"is-root","version":"2.1.0","description":"Check if the process is running as root user, for example, one started with `sudo`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-root.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["sudo","root","user","permissions","uid","process","posix"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"5ca094899eedf987adb20138616a4855223cace8","bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"homepage":"https://github.com/sindresorhus/is-root#readme","_id":"is-root@2.1.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==","shasum":"809e18129cf1129644302a4f8544035d51984a9c","tarball":"https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz","fileCount":5,"unpackedSize":2676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcudJaCRA9TVsSAnZWagAArHwP/1+McjANGJ4yQ8w9OEaB\nzSkOUwmwuwylnX5m/GbB4LocrAYbdztLrQQD8JMzQKJVJxkU+NNSXaYFCIyA\nat02oPZkY6+KkVcfVpmduRblhL+AfApRLgwnknQbvbA6ccP4awlEmBMXGjJp\nrzM2au41jaLlDDe9l0ghW02fFMleadNrAZEXriHd4ywE4+T0JjYWy+tUc1OX\nTenLQjyPx9TkzGS36J0TRkSOPqgGCEh5LJ09rDBW6g6GjFiJuI8QQNDUg3RU\nueBh1uuIWuTMShTSBnoG9OoolGKacjPLteB1twV3yr1EfuA6eFmvQgYf09Al\n9vvCuFinhIaOpIVH33GVMCzhf/EP8QgYhl4Omh5i5ZLQv89PzO9n987OV4Od\ncM1Pr4E8GWVWIzvshvTZjfKf2yLXyPqLVlSNg9djnLo19oGXlajv1giiY7Lb\nFF6yILMGvmrI2agKJ9kEukc6OAFGokmlYqGPbddAwYM9+UXIuCe0MPYpnAiT\nACFMh14fdYH69XM3CeRTXplceUAkrMMHVwUnd8V2gdoiyJqkybRZ86UCOucP\nNKSOFLfpCFqH7Asz0CkI7J9ueka33VR9RJta0vHQLN3JuaboUcchWH1HoFvg\nuI1zRK7pDwvEV3bzYZRpdYJanzeBPqH9f7NIc7dkRbfSjeja3Kgh5JhITDKN\nn5Xf\r\n=R7hU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr+z6ujyiwNBQNycvzSzY9in6esY6tCrqnS/7Un8zXFwIgKeSypxJrXVhTr2TZjR+HuOfo7EGfzfEYeKP1W2R6COM="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_2.1.0_1555681882039_0.017454071058927045"},"_hasShrinkwrap":false},"3.0.0":{"name":"is-root","version":"3.0.0","description":"Check if the process is running as root user, for example, one started with `sudo`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-root.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 && tsd"},"keywords":["sudo","root","user","permissions","uid","process","posix"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"3e7a920c4dd3b59cd2437797e4b0d90a703894c9","bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"homepage":"https://github.com/sindresorhus/is-root#readme","_id":"is-root@3.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-C13bL54yQdgniduW8KFe81ttgQINcwMgil/zyNuDzr/xjIyDMkcvcc9dON62RH9VBAHOI7le+lTo/U3PY3irwg==","shasum":"ec4822f88e0b5af0731bd6da5122fc993d83a61e","tarball":"https://registry.npmjs.org/is-root/-/is-root-3.0.0.tgz","fileCount":5,"unpackedSize":2591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbWndCRA9TVsSAnZWagAAJxkQAI6h4+lCxdwiQSayzmH+\nFgdK5R8BSpHYm71xSXH8i7Qu/WiR/lUCLCs7bNB/Q2OAbBNtsinqRyqbt/Eh\nkQi0ZFrJ2LNNAw/ZNpskLiFgDKvmB6cs7U74XVsSS2/O9OFmyObntkNi647g\nr3UCIpWuTNNpK3L0aOG8PSzufnmVLSjaKuooZAyaqYDEWfbS94Bj77E4d4JN\n4G84iOMYGF9fIEJapXE4jcm1lj7tlIzoIFgNRBoFL/T5IyGOkIMll5UKAjcK\nnA8bZA9S8fz2Soh7tZn99PlMSyajQn3gnrWzP7dnixXNegbp6kKC4XSEwmbb\ntfBgdAAeW385CFEdLRBgm8csGIPTp5WrECWKyK68qDY7VAE2sRyTad7oGszM\n+k41fY1iue/sb3qRoyf+xc4aJlaJuZlrcSzmyVKrmI2cDZ7eETpEvJmO/VfI\nw8yMC3No1NDSbcXa9ISVCNIXTk69LTL/xf6tVyqHeL7hlwU7qy+7QQNxReVr\niho8evhbbdSQqXAp/UxsPfw6jQ25TgLvfI6Y5eZir14a/69NKk0TpdHMOKuS\nx0DkBggjqclOkb0dwdgEHcBzvVnfd3H+2FRGUm0FozHd/r+96N/R0Z/cm4QE\nR5ohYx77ZvEgLd6+rvueTNxJurPqKfth2Mkc1kG85aRizOBjEr3zkm9MtMPA\ndfrZ\r\n=bOdC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXuibHV8IAL5QS0JstlbuC07swy3YtjNp2XflaMug27AIhAJE2HNIMJHQ/pGz4gyV9asu0z0xv99VB4HYqC+HToOuR"}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_3.0.0_1617783260966_0.09014697203009314"},"_hasShrinkwrap":false}},"readme":"# is-root\n\n> Check if the process is running as root user, for example, one started with `sudo`\n\n## Install\n\n```\n$ npm install is-root\n```\n\n## Usage\n\n```\n$ sudo node index.js\n```\n\n```js\n// index.js\nimport isRoot from 'is-root';\n\nisRoot();\n//=> true\n```\n\n## Related\n\n- [is-elevated](https://github.com/sindresorhus/is-elevated) - Check if the process is running with elevated privileges *(cross-platform)*\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-06-24T02:17:45.095Z","created":"2014-02-06T18:11:14.970Z","0.1.0":"2014-02-06T18:11:14.970Z","1.0.0":"2014-08-13T17:10:37.291Z","2.0.0":"2018-03-22T15:26:41.421Z","2.1.0":"2019-04-19T13:51:22.256Z","3.0.0":"2021-04-07T08:14:21.112Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/is-root#readme","keywords":["sudo","root","user","permissions","uid","process","posix"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-root.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"license":"MIT","users":{"gdbtek":true,"wenbing":true,"hugojosefson":true,"rocket0191":true,"flumpus-dev":true}}