Comparing version 1.0.3 to 1.0.4
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
if (require && module && require.main === module) { | ||
catsay(process.argv[2]); | ||
catsay(process.argv[2], true); | ||
} |
10
index.js
@@ -26,4 +26,8 @@ const wrapText = require("wrap-text"); | ||
function catsay(string) { | ||
console.log(renderBubble(string || "") + renderCat()); | ||
function catsay(string, log = false) { | ||
const say = renderBubble(string || "") + renderCat(); | ||
if (log) { | ||
console.log(say); | ||
} | ||
return say; | ||
} | ||
@@ -34,3 +38,3 @@ | ||
if (require && module && require.main === module) { | ||
catsay(process.argv[2]); | ||
catsay(process.argv[2], true); | ||
} |
{ | ||
"name": "kittysay", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "nononono", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1419
41
3