
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
spawn-command-with-kill
Advanced tools
Adds cross-platform `kill` function to spawn-command processes
Adds cross-platform kill
function to spawn-command processes
spawn-command
is a cross platform solution to node's spawn
. However, it
doesn't provide a mechanism for "killing" the process after it's begun (in a cross platform manner).
This solution provides a kill
function on the child
returned from spawn
which will kill the corresponding process
when invoked. It does not work with spawn.sync
as the process will be finished before your code could run anyway.
This module is distributed via npm which is bundled with node and should
be installed as one of your project's dependencies
:
npm install --save spawn-command-with-kill
const spawn = require('spawn-command-with-kill')
const child = spawn('webpack')
child.kill() // <-- that's the ✨ magic ✨ extra function
Big thank you goes to @mysticatea for his original work on npm-run-all from which this project was derived.
There's a version of this module for
cross-spawn
called
cross-spawn-with-kill
.
Thanks goes to these people (emoji key):
Kent C. Dodds 💻 📖 🚇 ⚠️ | Toru Nagashima 💻 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT
FAQs
Adds cross-platform `kill` function to spawn-command processes
We found that spawn-command-with-kill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.