Comparing version 1.0.1 to 1.1.0
@@ -5,2 +5,2 @@ #!/usr/bin/env node | ||
process.stdout.write(entrokitty() + '\n'); | ||
process.stdout.write(entrokitty(process.argv[2]) + '\n'); |
@@ -6,4 +6,8 @@ var fs = require('fs'); | ||
module.exports = function () { | ||
return entrokitty[Math.floor(Math.random() * entrokitty.length)]; | ||
module.exports = function (replacement) { | ||
var cat = entrokitty[Math.floor(Math.random() * entrokitty.length)]; | ||
if (replacement === undefined) { | ||
return cat; | ||
} | ||
return cat.replace(/ /g, replacement); | ||
}; |
{ | ||
"name": "entrokitty", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Littering your box with files that are all too similar? Add entrokitty to tell them apart.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,4 @@ # entrokitty | ||
### Installation | ||
``` | ||
@@ -12,5 +14,13 @@ npm install -g entrokitty | ||
Now just type `entrokitty` to get a random cat name. | ||
### Usage | ||
`entrokitty [space replacement]` | ||
``` | ||
$ entrokitty | ||
Scratch Adams | ||
$ entrokitty - | ||
Theo-de-Caadt | ||
``` | ||
## Node Usage | ||
@@ -21,3 +31,4 @@ | ||
console.log(entrokitty()); // Mew Kabakoff or one of many other cat names. | ||
console.log(entrokitty()); // Mew Kabakoff | ||
console.log(entrokitty('-')); // Eric-Meower | ||
``` | ||
@@ -24,0 +35,0 @@ |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
5992
13
36
0