Sha256: e7372dc5576116bc3fa4f1c9886d0f951e1ebe5c4380770c8b935183dd24e39f
Contents?: true
Size: 1.48 KB
Versions: 62
Compression:
Stored size: 1.48 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+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 [![Build Status](https://travis-ci.org/sindresorhus/is-root.svg?branch=master)](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" }
Version data entries
62 entries across 62 versions & 1 rubygems