Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 384 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 384 Bytes

Sudoer

Simple sudo wrapper with an exec() interface.

Example

var sudoer = require('sudoer'),
    cmd = '/some/command/that/requires/root/privileges',

sudoer.exec(cmd, function(err, stdout, stderr) {
  if (err) return console.log(err); // Requires sudo privileges
})

Credits, Copyright.

Written by Tomas Pollak. MIT license.