runas-win
v2.1.0
Published
Promise for run command with administrator privilege and hide mode.
Readme
Runas-win
Promise for run command with administrator privilege and hide mode.
Installing
npm install runas-winUse
import runasPromise from 'runas-win'
runasPromise('node', ['-v'], {hide:false, admin:true})
.then(()=>console.log('finish'));runasPromise(command, args[, options])
optionsObjecthideBoolean - Hide the console window,trueby default.adminBoolean - Run command as administrator,falseby default.
