
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
common-shell-scripts
Advanced tools
A set of shell scripts that I use quite a lot across different projects, for the times where Grunt / Gulp / etc is just too much.
npm install --save-dev common-shell-scripts
Then you can call a script, for example the watch
script, like so:
./node_modules/common-shell-scripts/watch {arg1} {arg2}
The typical usage is to put these into a Makefile, or similar. The Makefile of Totesy shows this in action.
watch
Watch a directory or file for changes and run something when changes are detected.
./watch directory/to/watch command_to_run
replace_secrets
Useful for placing secret information (API Keys, etc) in files but not in version control.
Given a JSON file secrets.json
like so:
{ "my_secret_key": "1234ABC" }
And app.js
like this:
var myApiKey = '!my_secret_key!';
Running:
./replace_secrets secrets.json app.js
Will result in app.js
reading like so:
var myApiKey = '1234ABC';
FAQs
A set of small NodeJS scripts that might come in useful.
We found that common-shell-scripts 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.