Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "calc-cli", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Calculus in your terminal", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const format = string => { | ||
return console.log(CHALK.cyan` ${string}`); | ||
return console.log(CHALK.cyan(` ${string}`)); | ||
}; | ||
@@ -34,2 +34,3 @@ | ||
} | ||
return [operation, expression]; | ||
@@ -53,11 +54,13 @@ }; | ||
inputs.length === 1 ? processSingle(inputs[0]) : processMultiple(inputs); | ||
return compute(operation, expression); | ||
}; | ||
PROG.description`Calculus (and more) in your terminal!` | ||
.usage`[operation] <expression>`.action(() => { | ||
exec(process); | ||
}); | ||
PROG.description('Calculus (and more) in your terminal!') | ||
.usage('[operation] <expression>') | ||
.action(() => { | ||
exec(process); | ||
}); | ||
PROG.parse(process.argv); | ||
if (!PROG.argv) PROG.outputHelp(); | ||
if (PROG.args.slice(0, -1).length == 0) PROG.outputHelp(); |
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
91387
153