Comparing version 1.0.3 to 1.1.0
19
cli.js
@@ -42,6 +42,15 @@ #!/usr/bin/env node | ||
listCows(); | ||
} else if (argv.h || argv._.length === 0) { | ||
require("optimist").showHelp(); | ||
} else if (argv.h) { | ||
showHelp(); | ||
} else if (argv._.length) { | ||
say(); | ||
} else { | ||
say(); | ||
require("get-stdin")(function (data) { | ||
if (data) { | ||
argv._ = [data]; | ||
say(); | ||
} else { | ||
showHelp(); | ||
} | ||
}); | ||
} | ||
@@ -60,1 +69,5 @@ | ||
} | ||
function showHelp () { | ||
require("optimist").showHelp(); | ||
} |
@@ -0,0 +0,0 @@ var baloon = require("./lib/balloon"); |
@@ -0,0 +0,0 @@ var os = require("os"); |
@@ -0,0 +0,0 @@ var path = require("path"); |
@@ -0,0 +0,0 @@ var modes = { |
@@ -0,0 +0,0 @@ module.exports = function (cow, variables) { |
{ | ||
"name": "cowsay", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "cowsay is a configurable talking cow", | ||
@@ -32,2 +32,3 @@ "keywords": [ | ||
"dependencies": { | ||
"get-stdin": "^4.0.1", | ||
"optimist": "~0.3.5" | ||
@@ -34,0 +35,0 @@ }, |
@@ -72,2 +72,6 @@ # cowsay | ||
|| || | ||
```` | ||
```` | ||
## Pipe from standard input | ||
echo please repeat | cowsay |
@@ -0,0 +0,0 @@ var balloon = require("../lib/balloon"); |
@@ -0,0 +0,0 @@ var cowFormat = "#Comment \ |
@@ -0,0 +0,0 @@ var getFace = require("../lib/faces"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
61
389
77
34027
2
+ Addedget-stdin@^4.0.1
+ Addedget-stdin@4.0.1(transitive)