@serieseight/cli
Advanced tools
Comparing version 1.1.0 to 1.2.0
14
index.js
#!/usr/bin/env node | ||
const chalk = require('chalk') | ||
const helloCmd = require('./commands/hello') | ||
const args = process.argv.splice(2) | ||
console.log( | ||
`The ${chalk.bold(args.join(' '))} command is not defined... yet!` | ||
) | ||
switch(args[0]) { | ||
case 'hello': | ||
helloCmd(args) | ||
break | ||
default: | ||
console.log( | ||
`The ${chalk.bold.red(args.join(' '))} command is not defined... yet!` | ||
) | ||
} |
@@ -19,3 +19,4 @@ { | ||
"dependencies": { | ||
"chalk": "^2.4.1" | ||
"chalk": "^2.4.1", | ||
"inquirer": "^6.2.0" | ||
}, | ||
@@ -48,3 +49,3 @@ "description": "A pointless CLI", | ||
}, | ||
"version": "1.1.0" | ||
"version": "1.2.0" | ||
} |
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
2184
4
44
0
2
+ Addedinquirer@^6.2.0
+ Addedansi-escapes@3.2.0(transitive)
+ Addedansi-regex@3.0.14.1.1(transitive)
+ Addedchardet@0.7.0(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-width@2.2.1(transitive)
+ Addedexternal-editor@3.1.0(transitive)
+ Addedfigures@2.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinquirer@6.5.2(transitive)
+ Addedis-fullwidth-code-point@2.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedmute-stream@0.0.7(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedrun-async@2.4.1(transitive)
+ Addedrxjs@6.6.7(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@2.1.1(transitive)
+ Addedstrip-ansi@4.0.05.2.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addedtslib@1.14.1(transitive)