Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
cross-spawn-with-kill
Advanced tools
Adds cross-platform `kill` function to cross-spawn processes
Adds cross-platform kill
function to cross-spawn processes
cross-spawn
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 cross-spawn-with-kill
const spawn = require('cross-spawn-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 are none that I'm aware of. The issue on
cross-spawn
requesting this feature was rejected. Hence the creation of this module.
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 cross-spawn processes
The npm package cross-spawn-with-kill receives a total of 1,440 weekly downloads. As such, cross-spawn-with-kill popularity was classified as popular.
We found that cross-spawn-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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.