{"_id":"is-root","_rev":"260840","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"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-03-27T17:14:33.000Z","created":"2014-02-06T18:11:14.970Z","3.0.0":"2021-04-07T08:14:21.112Z","2.1.0":"2019-04-19T13:51:22.256Z","2.0.0":"2018-03-22T15:26:41.421Z","1.0.0":"2014-08-13T17:10:37.291Z","0.1.0":"2014-02-06T18:11:14.970Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-root.git"},"versions":{"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":{"shasum":"ec4822f88e0b5af0731bd6da5122fc993d83a61e","size":1485,"noattachment":false,"key":"/is-root/-/is-root-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-root/download/is-root-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_3.0.0_1617783260966_0.09014697203009314"},"_hasShrinkwrap":false,"publish_time":1617783261112,"_cnpm_publish_time":1617783261112,"_cnpmcore_publish_time":"2021-12-16T14:51:41.036Z"},"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":{"shasum":"809e18129cf1129644302a4f8544035d51984a9c","size":1539,"noattachment":false,"key":"/is-root/-/is-root-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/is-root/download/is-root-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_2.1.0_1555681882039_0.017454071058927045"},"_hasShrinkwrap":false,"publish_time":1555681882256,"_cnpm_publish_time":1555681882256},"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":{"shasum":"838d1e82318144e5a6f77819d90207645acc7019","size":1433,"noattachment":false,"key":"/is-root/-/is-root-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-root/download/is-root-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-root_2.0.0_1521732401352_0.8874067575189113"},"_hasShrinkwrap":false,"publish_time":1521732401421,"_cnpm_publish_time":1521732401421},"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":""}],"dist":{"shasum":"07b6c233bc394cd9d02ba15c966bd6660d6342d5","size":725,"noattachment":false,"key":"/is-root/-/is-root-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-root/download/is-root-1.0.0.tgz"},"directories":{},"publish_time":1407949837291,"_cnpm_publish_time":1407949837291,"_hasShrinkwrap":false},"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","size":743,"noattachment":false,"key":"/is-root/-/is-root-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/is-root/download/is-root-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1391710274970,"_cnpm_publish_time":1391710274970,"_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","_attachments":{},"homepage":"https://github.com/sindresorhus/is-root#readme","bugs":{"url":"https://github.com/sindresorhus/is-root/issues"},"license":"MIT"}