UNPKG

elevated

Version:

Check if script is executed with elevated permissions: using sudo on Linux or administrator rights on Windows

60 lines (59 loc) 1.18 kB
{ "name": "elevated", "version": "1.2.1", "description": "Check if script is executed with elevated permissions: using sudo on Linux or administrator rights on Windows", "type": "commonjs", "main": "./index.cjs", "module": "./index.mjs", "types": "./index.d.ts", "exports": { ".": { "import": "./index.mjs", "require": "./index.cjs" } }, "files": [ "index.cjs", "index.mjs", "index.d.ts", "LICENSE", "README.md" ], "scripts": { "test": "vitest" }, "devDependencies": { "vitest": "^3.1.2" }, "repository": { "type": "git", "url": "git+https://github.com/cedrictailly/elevated.git" }, "keywords": [ "elevated", "admin", "administrator", "sudo", "permissions", "privileges", "root", "windows", "linux", "security", "nodejs", "rights", "cli", "elevation", "uac", "user-account-control" ], "author": "Cédric Tailly", "license": "MIT", "bugs": { "url": "https://github.com/cedrictailly/elevated/issues" }, "homepage": "https://github.com/cedrictailly/elevated#readme", "engines": { "node": ">=12.2.0" } }