griffins-awesome-project
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -12,15 +12,22 @@ #!/usr/bin/env node | ||
.option('-n, --name <name>', 'Specify the name of the person.', 'Dude') | ||
.option('-m, --male', 'Specify that the person is male.') | ||
.option('-f, --female', 'Specify that the person is female.') | ||
.option('-m, --muscle', 'Specify that the compliment is based on muscle.') | ||
.option('-a, --appearance', 'Specify that the compliment is based on appearance.') | ||
.option('-i, --intelligence', 'Specify that the compliment is based on intelligence.') | ||
.action(function(options) { | ||
var str = options.name + ", "; | ||
if (options.male) { | ||
str += "you're looking very muscle-y today"; | ||
} else if (options.female) { | ||
if (options.name == "Zeke") { | ||
console.log("Zeke, you're great at basketball!"); | ||
return; | ||
} | ||
if (options.muscle) { | ||
str += "you're looking very muscle-y today!"; | ||
} else if (options.appearance) { | ||
var target = ['hair', 'outfit', 'shoes']; | ||
var rand = Math.floor(Math.random()*3); | ||
var rand = Math.floor(Math.random() * 3); | ||
str += "your " + target[rand] + (rand > 1 ? " are" : " is"); | ||
str += " looking lovely today"; | ||
str += " looking great today!"; | ||
} else if (options.intelligence) { | ||
str += "you're being so smart today!" | ||
} else { | ||
str += "you're looking good today"; | ||
str += "you're looking good today!"; | ||
} | ||
@@ -73,3 +80,3 @@ console.log(str); | ||
// else, returns self and searches for a script in the folder that matches its name | ||
// last argument can be variadic | ||
// last argument can be variadic *** | ||
// .description(description) | ||
@@ -76,0 +83,0 @@ // .action(callback) |
{ | ||
"name": "griffins-awesome-project", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An amazing project that does... some things...", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3810
104