Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

griffins-awesome-project

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

griffins-awesome-project - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

25

griffin.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc