
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@armit/cli
Advanced tools
A tool the modern for rapidly building command line armitjs apps
npm i -g @armit/cliyarn add @armit/cliAdd this package to package dependencies linked to your app, just import them like regular packages:
import { bootstrap } from '@armit/cli';
bootstrap().then((cli) => {
// Register customized plugins chain.
cli.register(pluginA).register(pluginB);
// Parse progress arguments.
cli.parse(process.argv.slice(2));
});
arm testtest/package.json
"type": "module",
"exports": {
".": {
"import": "./index.js"
},
"./package.json": "./package.json"
},
test/src/index.tsimport type { CommandArgv } from "@armit/commander";
import { AbstractHandler, createCommand } from "@armit/commander";
type TestCmdArgs = CommandArgv<{
test: number;
}>;
class CmdTestHandle extends AbstractHandler<TestCmdArgs> {
handle(): void | Promise<void> {
console.log("this is test command handle");
this.logger.debug("this is debug message for test command");
}
}
const cmdTest = createCommand(
"test",
{
command: "test",
describe: "Display armit project details.",
builder: (yargs) => {
return yargs.example(`$0 cmd test `, "cli testing").option("test", {
type: "number",
alias: "t",
default: true,
describe: `cli option test describe`,
});
},
},
CmdTestHandle
);
// As named export `cmdtest`
export const myPlugin = definePlugin({
name:'cmdtest',
commandModule: cmdTest;
});
// As named export `cmdtest2`
export const myPlugin = definePlugin({
name:'cmdtest2',
commandModule: cmdTest;
});
Contributions are happily accepted. I respond to all PR's and can offer guidance on where to make changes. For contributing tips see CONTRIBUTING.md
FAQs
A tool the modern for rapidly building command line armitjs apps
The npm package @armit/cli receives a total of 14 weekly downloads. As such, @armit/cli popularity was classified as not popular.
We found that @armit/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.