Sha256: 08f80ddb650f78de984b7d87d0017dbe3b46aaa367b19e7ef9af7f7bf1dd803c
Contents?: true
Size: 1.46 KB
Versions: 7
Compression:
Stored size: 1.46 KB
Contents
{ "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": "*" }, "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", "_id": "is-root@1.0.0", "_shasum": "07b6c233bc394cd9d02ba15c966bd6660d6342d5", "_from": "is-root@~1.0.0", "_resolved": "https://registry.npmjs.org/is-root/-/is-root-1.0.0.tgz" }
Version data entries
7 entries across 7 versions & 1 rubygems