Skip to content

prey/node-sudoer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%