@coolcrab28/nodecli
Advanced tools
+0
-11
| #! /usr/bin/env node | ||
| const yargs = require("yargs"); | ||
| const usage = "\nUsage: tran <lang_name> sentence to be translated"; | ||
| const options = yargs | ||
| .usage(usage) | ||
| .option("l", { | ||
| alias: "languages", | ||
| describe: "List all supported languages.", | ||
| type: "boolean", | ||
| demandOption: false, | ||
| }) | ||
| .help(true).argv; | ||
| console.log("Hello World!"); |
+2
-2
| { | ||
| "name": "@coolcrab28/nodecli", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "main": "bin/index.js", | ||
@@ -9,3 +9,3 @@ "keywords": [ | ||
| "bin": { | ||
| "mycli": "bin/index.js" | ||
| "nodecli": "bin/index.js" | ||
| }, | ||
@@ -12,0 +12,0 @@ "license": "MIT", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
670
-30.64%2
-84.62%1
Infinity%