windows-elevate
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/windows-elevate package

1.0.1 • Public • Published

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!');
});

/windows-elevate/

    Package Sidebar

    Install

    npm i windows-elevate

    Weekly Downloads

    741

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • chaws