bower
Version:
The browser package manager
47 lines (46 loc) • 1.51 kB
JSON
{
"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+https://github.com/sindresorhus/is-root.git"
},
"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": "*"
},
"readme": "# is-root [](https://travis-ci.org/sindresorhus/is-root)\n\n> Check if the process is running as root user, eg. started with `sudo`.\n\n\n## Install\n\n```sh\n$ npm install --save is-root\n```\n\n\n## Usage\n\n```sh\n$ sudo node index.js\n```\n\n```js\n// index.js\nvar isRoot = require('is-root');\n\nisRoot();\n//=> true\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/is-root/issues"
},
"homepage": "https://github.com/sindresorhus/is-root#readme",
"_id": "is-root@1.0.0",
"_shasum": "07b6c233bc394cd9d02ba15c966bd6660d6342d5",
"_resolved": "https://registry.npmjs.org/is-root/-/is-root-1.0.0.tgz",
"_from": "is-root@>=1.0.0 <2.0.0"
}