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.3 to 1.1.0

11

bin/functions.js

@@ -20,2 +20,13 @@ const fs = require('fs')

// VALIDATE WORD
let validWordsBuffer = fs.readFileSync(path.join(__dirname, 'validWords.json'))
let validWords = JSON.parse(validWordsBuffer)
const validate = (word) => {
if (words.includes(word) || validWords.includes(word)) {
return true
}
}
// SHOW WORD

@@ -22,0 +33,0 @@

4

bin/index.js

@@ -30,2 +30,6 @@ #! /usr/bin/env node

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

@@ -32,0 +36,0 @@ currentRound++

2

package.json
{
"name": "wordle-cli",
"version": "1.0.3",
"version": "1.1.0",
"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