https://github.com/christopherhaws/node-windows-elevate
Node module to execute a command in an elevated command prompt.
https://github.com/christopherhaws/node-windows-elevate
Last synced: 10 months ago
JSON representation
Node module to execute a command in an elevated command prompt.
- Host: GitHub
- URL: https://github.com/christopherhaws/node-windows-elevate
- Owner: ChristopherHaws
- License: mit
- Created: 2016-04-03T23:19:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-27T16:06:57.000Z (almost 3 years ago)
- Last Synced: 2025-06-21T12:16:12.287Z (12 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# windows-elevate
Node module to execute a command in an elevated command prompt.
## Install
npm install --save windows-elevate
## Execute a command
```
var elevate = require('windows-elevate');
elevate.exec('echo', 'Hello World', function(error, stdout, stderror) {
if (error) {
console.error('Failed!');
return;
}
console.log('Success!');
});
```