New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.2 to 1.0.3

bin/functions.js

11

bin/index.js
#! /usr/bin/env node
const { createInterface } = require('readline')
const { getWord, validateWord } = require('./getWord')
const word = require('./functions')
const getOptions = require('./getOptions')
const showWord = require('./showWord')
const messages = require('./messages')

@@ -13,3 +12,3 @@

const options = getOptions()
const wordOfTheDay = options.word || getWord(options.date, options.random)
const wordOfTheDay = options.word || word.get(options.date, options.random)
const guessRegex = new RegExp(`^[a-z]{${wordOfTheDay.length}}$`, 'i')

@@ -32,6 +31,2 @@

return
} else if (!validateWord(input.toLowerCase())) {
console.log(`\n${input.toUpperCase()} is not a valid word!\n`)
round()
return
} else if (!options.unlimited) {

@@ -86,3 +81,3 @@ currentRound++

showWord(result)
word.show(result)

@@ -89,0 +84,0 @@ // Start new round or end game

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

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

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