
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
commander-jsx
Advanced tools
Command-line Arguments Parser with JSX support
index.tsx
import { Command, createCommand } from 'commander-jsx';
Command.execute(
<Command
name="git"
version="2.10.0"
parameters="[command] [options]"
description="Distributed Version Control system"
>
<Command
name="remote"
description='Manage the set of repositories ("remotes") whose branches you track'
>
<Command
name="add"
description="Adds a remote named <name> for the repository at <url>"
options={{
tree: {
shortcut: 't',
parameters: '<branch>',
pattern: /^\w+$/,
description: 'Branch tree'
}
}}
executor={({ tree }, name, url) => console.log(tree, name, url)}
/>
</Command>
</Command>,
process.argv.slice(2)
);
tsconfig.json
{
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"jsx": "react",
"jsxFactory": "createCommand",
"target": "ES2017",
"outDir": "dist/"
}
}
Then, run git help in your terminal, it'll outputs:
git [command] [options]
Distributed Version Control system
Options:
-h, --help show Help information
-v, --version show Version number
Commands:
help [command] show Help information
remote Manage the set of repositories ("remotes") whose branches you track
FAQs
Command-line Arguments Parser with JSX support
The npm package commander-jsx receives a total of 35 weekly downloads. As such, commander-jsx popularity was classified as not popular.
We found that commander-jsx demonstrated a healthy version release cadence and project activity because the last version was released less than 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.