Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wordle-cli

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordle-cli - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

7

bin/getOptions.js

@@ -24,2 +24,5 @@ const getOptions = () => {

break
case 'g':
options['guesses'] = flagSplit[1]
break
case 'd':

@@ -38,2 +41,6 @@ options['date'] = flagSplit[1]

// Check guesses option
if (options.guesses == '0') options.unlimited = true
if (!parseInt(options.guesses)) delete options.guesses
return options

@@ -40,0 +47,0 @@ }

2

bin/index.js

@@ -10,4 +10,4 @@ #! /usr/bin/env node

let gameWon = false
const rounds = 6
const options = getOptions()
const rounds = options.guesses || 6
const { wordOfTheDay, gameId } = word.get(options)

@@ -14,0 +14,0 @@ const guessRegex = new RegExp(`^[a-z]{${wordOfTheDay.length}}$`, 'i')

module.exports = {
title() {
console.clear()
// console.clear()
console.log(`

@@ -77,2 +77,3 @@

-r --random : Play with a randomly selected word
-g --guesses <number> : Set a custom amount of rounds for a game
-s --spoiler : Show the word of the day immediately

@@ -79,0 +80,0 @@ -u --unlimited : Disable the maximum of 6 rounds per game

{
"name": "wordle-cli",
"version": "1.1.4",
"version": "1.1.5",
"description": "CLI interpretation of the game Wordle",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

@@ -29,2 +29,4 @@ # Wordle CLI

`-g` `--guesses` `<number>`: Set a custom amount of rounds for a game
`-s` `--spoiler`: Show the word of the day immediately

@@ -31,0 +33,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc