wordle-cli
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -11,25 +11,30 @@ const getOptions = () => { | ||
} else if (/^-/.test(flagSplit[0])) { | ||
switch (flagSplit[0].substring(1)) { | ||
case 's': | ||
options['spoiler'] = true | ||
break | ||
case 'h': | ||
options['hard'] = true | ||
break | ||
case 'r': | ||
options['random'] = true | ||
break | ||
case 'u': | ||
options['unlimited'] = true | ||
break | ||
case 'g': | ||
options['guesses'] = flagSplit[1] | ||
break | ||
case 'd': | ||
options['date'] = flagSplit[1] | ||
break | ||
case 'w': | ||
options['word'] = flagSplit[1] | ||
break | ||
} | ||
flagSplit[0] | ||
.substring(1) | ||
.split('') | ||
.forEach((flag) => { | ||
switch (flag) { | ||
case 's': | ||
options['spoiler'] = true | ||
break | ||
case 'h': | ||
options['hard'] = true | ||
break | ||
case 'r': | ||
options['random'] = true | ||
break | ||
case 'u': | ||
options['unlimited'] = true | ||
break | ||
case 'g': | ||
options['guesses'] = flagSplit[1] | ||
break | ||
case 'd': | ||
options['date'] = flagSplit[1] | ||
break | ||
case 'w': | ||
options['word'] = flagSplit[1] | ||
break | ||
} | ||
}) | ||
} | ||
@@ -36,0 +41,0 @@ }) |
@@ -5,3 +5,3 @@ const { insertSpaces } = require('./utils') | ||
title() { | ||
console.clear() | ||
// console.clear() | ||
console.log(` | ||
@@ -87,4 +87,5 @@ | ||
This is command line interpretation of Wordle, created by Rob van Bakel. | ||
The original game was created by Josh Wardle (@powerlanguish). | ||
This is a command line interpretation of Wordle, created by Rob van Bakel. | ||
The original game was created by Josh Wardle (@powerlanguish) and is | ||
available on www.nytimes.com/games/wordle. | ||
@@ -91,0 +92,0 @@ `) |
{ | ||
"name": "wordle-cli", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "CLI interpretation of the game Wordle", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -39,2 +39,2 @@ # Wordle CLI | ||
This is command line interpretation of Wordle, created by [Rob van Bakel](https://github.com/robvanbakel). The original game was created by Josh Wardle ([@powerlanguish](https://twitter.com/powerlanguish)) and available on [powerlanguage.co.uk](https://powerlanguage.co.uk/wordle/). | ||
This is command line interpretation of Wordle, created by [Rob van Bakel](https://github.com/robvanbakel). The original game was created by Josh Wardle ([@powerlanguish](https://twitter.com/powerlanguish)) and is available on [www.nytimes.com/games/wordle](https://www.nytimes.com/games/wordle). |
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
157477
10
13341
2