
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
whats-the-weather
Advanced tools
Creating a node CLI utility is really easy, If you have a basic knowledge of javascript and node you will already know how to write one.
npm init
. Fill out the options."bin": {
"<name of package>": "./index.js"
}
<name of package>
with the name of your package.index.js
file and add #!/usr/bin/env node
on the first line.npm install -g
. This will allow you to run your CLI globally.npm link
, This will bind your local package to the global install so you don't have to reinstall your utility every time you make a change. Run npm unlink
to remove the link again.npm publish
. Every time you wish to make a change you will need to increase the version number in package.json
.You can now start creating your CLI Utility. Browse the files in this package to find out how everything works.
scripting-with-node - A fantastic article for getting started.
FAQs
A simple node CLI example
We found that whats-the-weather 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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.