@armit/common
Advanced tools
+1
-1
| { | ||
| "name": "@armit/common", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "homepage": "https://github.com/armitjs/armit", | ||
@@ -5,0 +5,0 @@ "repository": { |
+39
-2
@@ -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 | ||
| ); | ||
| ``` |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
117977
0.69%45
462.5%