{"_id":"is-elevated","_rev":"10-71f42acb5b56a19c781705f5f40ec2fd","name":"is-elevated","description":"Check if the process is running with elevated privileges","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"is-elevated","version":"1.0.0","description":"Check if the process is running with elevated privileges","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-elevated"},"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":["admin","administrator","win","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"dependencies":{"is-admin":"^1.0.2","is-root":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"934d0370b45b23e88a33479a9b40621f6851727f","bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"homepage":"https://github.com/sindresorhus/is-elevated","_id":"is-elevated@1.0.0","_shasum":"f884e1728c1a8d8d5ecf623f88733c6e6ee1e2ee","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f884e1728c1a8d8d5ecf623f88733c6e6ee1e2ee","tarball":"https://registry.npmjs.org/is-elevated/-/is-elevated-1.0.0.tgz","integrity":"sha512-BW4oaUkYWHnfj2ogrBlmZ95lRnpHKnOk2xK4q3ZJOrqYOo6qCHL10q4UU7pVmH4S1HmqWmA1U4X9ARoDQjeo2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQNomDJGKE0D3IzUj3dux7okjAz6GGzXBCvHdIyJU4AAIhAO1zRx7TMCYh2y46Fg4wNNwx+Str7En90pvGapdkyBjE"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"is-elevated","version":"2.0.0","description":"Check if the process is running with elevated privileges","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-elevated.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["admin","administrator","win","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"dependencies":{"is-admin":"^2.1.0","is-root":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"0ba70cbb47892892eaa56562b96b6de41bb959d0","bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"homepage":"https://github.com/sindresorhus/is-elevated#readme","_id":"is-elevated@2.0.0","_shasum":"d2bad60c1cca1c1de38f67f9e7f3047a05ee4066","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d2bad60c1cca1c1de38f67f9e7f3047a05ee4066","tarball":"https://registry.npmjs.org/is-elevated/-/is-elevated-2.0.0.tgz","integrity":"sha512-EHzuFdOFZRYTjh47z9oF8e+aX/5oq7xyGsyA6uNVs1ZTq6P82Gk6Mb3LnFEE3HU4a3Gjgsoe/sf6W9HP3Y6r6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWhgwUvGwlp3vvi27ztEWgCsBIrkBBP5KKZmiC1ruqbAiAumAhDVkwMKoIIdhKXEVQRfC9gqPEVxeS/4EMQPrUGMA=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-elevated-2.0.0.tgz_1489590299266_0.7956850815098733"},"directories":{}},"2.0.1":{"name":"is-elevated","version":"2.0.1","description":"Check if the process is running with elevated privileges","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-elevated.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["admin","administrator","win","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"dependencies":{"is-admin":"^2.1.0","is-root":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"c1ce61585ca746a4757c6e84b8020ebac7a827e5","bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"homepage":"https://github.com/sindresorhus/is-elevated#readme","_id":"is-elevated@2.0.1","_shasum":"0a2b0a02b5ddbe560e33992acd4b544547499998","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0a2b0a02b5ddbe560e33992acd4b544547499998","tarball":"https://registry.npmjs.org/is-elevated/-/is-elevated-2.0.1.tgz","integrity":"sha512-EF3jhecYOlTO44uW9f/tCwNk4J6jEP7Skm2fLrpdNURhFVA0o7IDwxXEJmW/mYZp3z7XJZyZwYEE1fCcSUwCQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1FBAZ/O7Un4jI65GJwPMTIEJdrdOCGRQA5RxMgSE5HAiEAha+9ZYgoVhgVRn3L+aUJa8VhFnhp2scozc2O1bLje0M="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-elevated-2.0.1.tgz_1489605930901_0.8155847447924316"},"directories":{}},"3.0.0":{"name":"is-elevated","version":"3.0.0","description":"Check if the process is running with elevated privileges","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-elevated.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["admin","administrator","win","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"dependencies":{"is-admin":"^3.0.0","is-root":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"5bd82cc76c42c582a8a5c4a76a91cba352025297","bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"homepage":"https://github.com/sindresorhus/is-elevated#readme","_id":"is-elevated@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-wjcp6RkouU9jpg55zERl+BglvV5j4jx5c/EMvQ+d12j/+nIEenNWPu+qc0tCg3JkLodbKZMg1qhJzEwG4qjclg==","shasum":"f0de684f89b5144179ae1729ba8af590b8e0cecb","tarball":"https://registry.npmjs.org/is-elevated/-/is-elevated-3.0.0.tgz","fileCount":5,"unpackedSize":3244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcueOVCRA9TVsSAnZWagAAsgoP/0e8m+ngnh6e2CFz3MDd\nu2lLTESiCquD0QEPQURTl+sGkt1qsvs+HiWhkyXMqEbg3v0WBRNQC0TqY6MT\nN3kxXN7CXJungzOO4NSwauduNXXEo9JpFTSSuN+IBe3pPf6DAGAF3V6RddO0\ni2BNKFeRW0bRTEeQRrHy6riSIR4bKDv1H+GA6mCaqWLO6W8cKuekuuSI8asi\nvLUZbDBX9yDZ+CoUX+t0LIgau/WzxT+i9G+HLv+SJ3Wdz0WrC2U8cf85yp6n\nXQ5OpOzG6LpNoaaYnBfuxfMabHpPYydKizWtbHBw2oJlyhm6fzY1CYWioA63\nThXNHeDacJ6UJbHeoVmF147XLqt4NqSUe8Be5FHEmUsjxz+7VovgBhj1uPAs\n8QYNbfRMBpx1NJrNKcAaGUEd5KNsJDExcMVW0rA1nJ8ITwlTRDBbK3gANQZb\nC5uBK3+3SWhwPj5qq89BfrufisF+qUNej7Ei4+9sUOCTL67H5Z5ZjzyNhjvk\nwlv9BIlEqFYKk98zTPaDXq4rss9zypdLNEqIu7GEntNdmOANwE7FDYFsu/9I\ny91AL6od4eALNW+gheV2F7bVzaWgUvwXdpvEH20Vd0lzTxKi4RhHJTiuEN4Z\nu0w6IbPNP4bfICu6l4CEFlQ9T7CW0afg/hkIgZb4RAcO0RT0UsrueNUE3hmY\nGVcQ\r\n=vaOP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIrHol3vgy6j+GwW0KIZXN2xBBiTAQzNbcZk9u5oPOmgIhAOUMfkkYCmky0XEnVxMv99HN44YmPSYVqC1hAbB+u+I7"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-elevated_3.0.0_1555686292626_0.010972593823771692"},"_hasShrinkwrap":false},"4.0.0":{"name":"is-elevated","version":"4.0.0","description":"Check if the process is running with elevated privileges","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-elevated.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.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["admin","administrator","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"dependencies":{"is-admin":"^4.0.0","is-root":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"f09780f71f57ca951872c7e09bfdbeeb700ad1ac","bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"homepage":"https://github.com/sindresorhus/is-elevated#readme","_id":"is-elevated@4.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-nHdo1tvG6ocQA+MESx+VmUae2dvB32mm87gzZxMlZT7gtURGC9quMpYrwuMqIFJTqKSP/wLLQnneG/Z2AIne6g==","shasum":"03d7012f29156ed1b36e9616746f8c2be01797e8","tarball":"https://registry.npmjs.org/is-elevated/-/is-elevated-4.0.0.tgz","fileCount":5,"unpackedSize":3150,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE8NjCRA9TVsSAnZWagAAxNYP/ROj6VRTIPRk0i1BcwKm\n1e7pZwU+PiZTG9yT7KN2HDfcvuXZzLafs6yfa/BM44lYcyESjqEDKPTSQo54\n4LEoMJQ9Txexe7vRn2tiRG0vuFkpXOU1Iebm/WR++XxgscW89RFlxi6Dhy8V\nXIGym7oRFCbeIFlBpFlXh21DyDWoNW2D9sFURT2AHWmEsqk6+pZ8kLRROT3x\nPYUYXctroUlz6VAB00TBJpVEt7MM3+kiF33qwdpIujkCMsdj94ZOcwVo5gph\nStKqU8QkD4tKF2B5FKjW6HkpnqlhET6mQTc/ftHA8u6bvvTvWImU9guuBvzK\nV7FZUlZoWxKwQTjd/Yd/WlJ51YJotF4cBnFK5RjBAbHhWuEXVYvz50K163VV\nllkeMPSTRB29PYk+4jsVkDxt4m67z4UPlvheWlOhTVYRubjJNjDMINNCncJH\nSTn6C5FkljHu3U6xu/Kx2PClTXWTvM+ANKX5cS0fL19WrrRzbUNDW+eFmH/+\nJrzqcMdsigOgtbdc2Lu9O8HZLJ1UkJmpoIEGsooSrEACse+X8JDAUf5xQV6A\nDjf4QWAuGKaeDt/P0fvsJGmvSyg+dJkddUBl01cm7j6ZjPNjvlpF52ZfS9pV\ng8bOT3pdaHisSrJyja5ufSaigXSGooEVodf2yPMkY7tfxFrWA0/ASAthEyK9\nRgX3\r\n=AnUx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDtO0MxjxR5YiBN9YxVk/iutm3+RivpeSoKJ5nHzUL0AiBJcWtqKP1phGe1ZVO0pc3jz2mA4kqYHLTOUxKD0XotpA=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-elevated_4.0.0_1628685155264_0.03543802111741434"},"_hasShrinkwrap":false}},"readme":"# is-elevated\n\n> Check if the process is running with elevated privileges\n\nBy checking if the process [is root](https://github.com/sindresorhus/is-root) on Unix systems or if the user is [administrator](https://github.com/sindresorhus/is-admin) on Windows.\n\nKeep in mind that `root` and `Administrator` mean different things so this module might not be suitable for your use-case.\n\n## Install\n\n```\n$ npm install is-elevated\n```\n\n## Usage\n\n```js\nimport isElevated from 'is-elevated';\n\nconsole.log(await isElevated());\n//=> false\n```\n\n## Related\n\n- [sudo-block](https://github.com/sindresorhus/sudo-block) - Block users from running your app with root permissions\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-19T02:40:13.042Z","created":"2015-05-02T17:22:35.143Z","1.0.0":"2015-05-02T17:22:35.143Z","2.0.0":"2017-03-15T15:05:01.143Z","2.0.1":"2017-03-15T19:25:31.125Z","3.0.0":"2019-04-19T15:04:53.338Z","4.0.0":"2021-08-11T12:32:35.387Z"},"homepage":"https://github.com/sindresorhus/is-elevated#readme","keywords":["admin","administrator","win32","windows","process","running","cmd","shell","command-line","check","detect","is","root","sudo","elevate","elevated","privileges"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-elevated.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-elevated/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"rocket0191":true,"faraoman":true}}