2.1.0 • Published 8 years ago

runas-win v2.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

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.
2.1.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago