Comparing version 1.0.16 to 1.0.17
#!/usr/bin/env node | ||
const readline = require("readline"); | ||
const chalk = require("chalk"); | ||
const ora = require('ora'); | ||
const rl = readline.createInterface({ | ||
@@ -9,7 +10,10 @@ input: process.stdin, | ||
if(process.argv[2]){ | ||
if(process.argv[2].toLowerCase() == "-u"){ | ||
console.log("Booting.") | ||
if(["-u","-update","--u","--update"].includes(process.argv[2].toLowerCase())){ | ||
let spin = ora({ | ||
prefixText: 'Updating...', | ||
color: 'magenta' | ||
}).start(); | ||
const cp = require("child_process"); | ||
cp.execSync(`npm i -g consel`) | ||
console.log("BOOTED"); | ||
spin.succeed(`✔ Updated`) | ||
process.exit() | ||
@@ -16,0 +20,0 @@ } |
{ | ||
"name": "consel", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "", | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"chalk": "^4.0.0" | ||
"chalk": "^4.0.0", | ||
"ora": "^4.0.4" | ||
}, | ||
@@ -17,0 +18,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2170
63
2
+ Addedora@^4.0.4
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.23.0.0(transitive)
+ Addedcli-cursor@3.1.0(transitive)
+ Addedcli-spinners@2.9.2(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddefaults@1.0.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedis-interactive@1.0.0(transitive)
+ Addedlog-symbols@3.0.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedmute-stream@0.0.8(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedora@4.1.1(transitive)
+ Addedrestore-cursor@3.1.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedwcwidth@1.0.1(transitive)