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.1.6 to 1.1.7

bin/utils.js

2

bin/index.js
#! /usr/bin/env node
const { createInterface } = require('readline')
const word = require('./functions')
const word = require('./wordFunctions')
const getOptions = require('./getOptions')

@@ -5,0 +5,0 @@ const messages = require('./messages')

@@ -0,1 +1,3 @@

const { insertSpaces } = require('./utils')
module.exports = {

@@ -18,14 +20,14 @@ title() {

youWon(gameId, rounds) {
let stats
let stats = []
let statsOutput = ''
if (gameId && !rounds.unlimited) {
stats = `worlde #${gameId} ${rounds.currentRound}/${rounds.rounds}`
} else if (gameId) {
stats = ` worlde #${gameId} `
} else if (!rounds.unlimited) {
stats = ` worlde ${rounds.currentRound}/${rounds.rounds} `
} else {
stats = ` `
}
if (gameId) stats.push(`#${gameId}`)
if (!rounds.unlimited) stats.push(`${rounds.currentRound}/${rounds.rounds}`)
if (stats.length) statsOutput = `wordle ${stats.join(' ')}`
const statsPadding = (23 - statsOutput.length) / 2
statsOutput = insertSpaces(Math.ceil(statsPadding)) + statsOutput + insertSpaces(Math.floor(statsPadding))
console.log(`

@@ -36,3 +38,3 @@ _____________________________

\\_| CONGRATULATIONS |
| ${stats} |
| ${statsOutput} |
| |

@@ -39,0 +41,0 @@ | \x1b[33m ___________ \x1b[0m |

{
"name": "wordle-cli",
"version": "1.1.6",
"version": "1.1.7",
"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