4.5.2 • Published 4 years ago

@mozilla/spawnd v4.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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