0.1.5 • Published 9 years ago

node-webkit-sudo v0.1.5

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

node-webkit-sudo

var Sudo = require("node-webkit-sudo");
var sudo = new Sudo();
sudo.setPassword("PASSWORD");

check

check whether the PASSWORD is valid

sudo.check(function (valid) {

});

exec

exec the commands

sudo.exec([commands, ...], function (err, data) {

});

killByPid

kill the process by PID

sudo.killByPid(pid, function (err, data) {

});

killByName

kill the process by Process Name

sudo.killByName(name, function (err, data) {

});
0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago