@meebs/meeb 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -92,6 +92,11 @@ for (let i = 0; i < positional.length; i++) {
92
92
  positional.length = 0
93
93
  positional.push(...cleaned)
94
94
 
95
+ // If there are extra words after the animal name, treat them as --say
96
+ if (positional.length > 1 && !flags.say) {
97
+ flags.say = positional.slice(1).join(' ')
98
+ }
99
+
95
100
  const cmdWords = ['all', 'random', 'browse', 'list', 'count', 'help']
96
101
  const cmd = (cmdWords.includes(positional[0]) ? positional[0] : null)
97
102
  || Object.keys(flags).find(f => cmdWords.includes(f))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meebs/meeb",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Cute ASCII art animals for your terminal",
5
5
  "bin": {
6
6
  "meeb": "./index.js"