Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@armit/common

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@armit/common - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+1
-1
package.json
{
"name": "@armit/common",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "https://github.com/armitjs/armit",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,4 +5,41 @@ # @armit/common

## node modern entry points exports
## Module/Programmatic Usage
https://nodejs.org/api/packages.html#dual-commonjses-module-packages
- `yarn add @armit/common`
Add this package to package dependencies linked to your app, just import them like regular packages:
```ts
import { AbstractHandler } from "@armit/common";
type TestCmdArgs = CommandArgv<{
test: number;
}>;
class CmdTestHandle extends AbstractHandler<TestCmdArgs> {
get name(): string {
return `test`;
}
handle(): void | Promise<void> {
console.log("this is test command handle");
this.logger.debug("this is debug message for test command");
}
}
export 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
);
```