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.
debounce-cmd
Advanced tools
Debounce a command based on
yarn add --dev debounce-cmd
or
npm install --save-dev debounce-cmd
# Shows help
yarn debounce-cmd --help
# Runs command if it was not run in the last 20s
yarn debounce-cmd "echo ran this command" --time 20s
# Runs comand if yarn.lock in current directory changed since last run
yarn debounce-cmd "yarn install" --file yarn.lock
# Additionally uses custom cache directory instead of default in node_modules
yarn debounce-cmd "yarn install" --file yarn.lock --cache-dir .config/cache
# Runs command if it was not run in a month or any of the files changed
yarn debounce-cmd "yarn install" --time 1mo --file yarn.lock --file package.json
# Shows path to cache directory
yarn debounce-cmd cache dir
# Clear cache
yarn debounce-cmd cache clear
You can use it to execute commands conditionally in package.json
scripts.
{
"scripts": {
"dev": "debounce-cmd \"yarn\" --file yarn.lock && start-dev-server"
}
}
If you find a bug or something you don't like, please submit an issue or a pull request. I'm happy about any kind of feedback!
FAQs
Debounce a command based on various factors
The npm package debounce-cmd receives a total of 129 weekly downloads. As such, debounce-cmd popularity was classified as not popular.
We found that debounce-cmd 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.