elevated-process
v1.0.3
Published
A small wrapper on node's native `child_process`. It can start an elevated child process (run as aminstrator) using `spawn`, `exec`, `fork`, `spawnSync` or `execSync` from a non-elevated process; offering stdin, stdout and stderr on the elevated process
Downloads
2
Maintainers
Readme
elevated-process
A small wrapper on node's native
child_process
. It can start an elevated child process (run as aminstrator) usingspawn
,exec
,fork
,spawnSync
orexecSync
from a non-elevated process; offering stdin, stdout and stderr on the elevated process
Installation
npm i elevated-process
or
yarn add elevated-process
Platforms
| | | -- | -- | -- | ✔ | ❌ | ❌ |
Usage
This package uses the exact same API as node.js native child_process
API, supporting spawn
, exec
, fork
, spawnSync
and execSync
gsudo
This package uses gsudo internally to elevate commands on windows