suspawn

0.2.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    19
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    19
  • 0.2.1
    1
  • 0.1.1
    2
  • 0.1.0
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i suspawn

Weekly Downloads

18

Version

0.2.2

License

MIT

Last publish

Collaborators

  • bradleymeck
  • indexzero