Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

node-wordle

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wordle

Functions to help create wordle with node.js

Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

wordlejs

A few simple functions to make wordle easier to make.

Functions

getWord(isValid)

This function gets a word from the data.json file. If isValid is true, it will select a word from the list of words used by wordle before the aquisition by NYT.

checkGuess(guess, answer)

This function checks the guess of the player with the answer. If there are multiple instances of a letter, the function will work from left to right. It will throw an error if the letters are not 5 letters long.

FAQs

Package last updated on 16 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts