runas-win

2.1.0 • Public • Published

Runas-win

Promise for run command with administrator privilege and hide mode.

Installing

npm install runas-win

Use

import runasPromise from 'runas-win'
 
runasPromise('node', ['-v'], {hide:false, admin:true})
    .then(()=>console.log('finish'));

runasPromise(command, args[, options])

  • options Object
    • hide Boolean - Hide the console window, true by default.
    • admin Boolean - Run command as administrator, false by default.

Readme

Keywords

none

Package Sidebar

Install

npm i runas-win

Weekly Downloads

0

Version

2.1.0

License

ISC

Last publish

Collaborators

  • lagun4ik