Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
sudo spawning utilities
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.md
package.json

README.md

SuSpawn

example

require('suspawn')('env', {
  env: {
    VARBLOCKEDBYSUDOERSNORMALLY: 'BUT NOT NOW!'
  }
}).stdout.pipe(process.stdout);

suspawn(command[, args][, options])

options.spawnOptions.env

Environmental variables to pass to the sudo command.

options.env

Environmental variables to pass through to the spawned command.

options.uid

User to spawn as.

options.gid

Group to spawn as.

suspawn.getSpawnOptions(command[, args][, options])

A useful little function if you do not actually want to spawn the process, but would rather get the options to spawn it yourself. This allows some modification instead of straight spawning.

Something went wrong with that request. Please try again.