Skip to content

Instantly share code, notes, and snippets.

@Almenon
Created April 7, 2018 21:29
Show Gist options
  • Save Almenon/bc81bffab2365d7daf960bad5c8b954c to your computer and use it in GitHub Desktop.
Save Almenon/bc81bffab2365d7daf960bad5c8b954c to your computer and use it in GitHub Desktop.
spawning and killing a process
import { spawn, ChildProcess } from "child_process"
child = spawn("command", ["argument"])
child.kill()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment