@mozilla/spawnd

4.5.2 • Public • Published

spawnd

Build Status version MIT License

Spawn a process inter-dependent with parent process.

npm install spawnd

Usage

import spawnd from 'spawnd'

const proc = spawnd('node server.js', { shell: true })

proc.destroy().then(() => {
  console.log('Destroyed!')
})

API

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

Exactly the same API as Node.js spawn.

It returns a Child Process that exposes a destroy method that will kill the process.

License

MIT

Package Sidebar

Install

npm i @mozilla/spawnd

Weekly Downloads

2

Version

4.5.2

License

MIT

Unpacked Size

6.61 kB

Total Files

5

Last publish

Collaborators

  • tigleym
  • nbaumgardner
  • eemeli
  • mozilla-npm
  • mythmon
  • jkratzer
  • factorui.npm
  • project-nimbus-publishing
  • gijs
  • nchevobbe
  • brizental
  • aplacitelli
  • mozrhelmer
  • knowtheory