@castodius/wordle
v1.0.0
Published
Package for getting the answer to Wordle for a given day
Downloads
21
Readme
Introduction
Wordle is a fun daily word game. This package makes it simple to cheat, it contains a full list of words until the year 2027. Should the word list be updated this package will break immediately.
Installation
@castodius/wordle can be installed globally
npm install @castodius/wordle -gAlternatively it can be invoked via npx
npx @castodius/wordleUsage
CLI
The CLI takes one optional argument, the day to get the word for in date format yyyy-MM-dd. If no word is supplied it defaults to today.
Example using globally installed package
wordle-cheatExample using globally installed package and picking the date
wordle-cheat 2020-02-14Function
You can use getAnswer to the answer for a Wordle. Example
import { getAnswer } from '@castodius/wordle'
console.log(getAnswer()) // returns the answer for today
console.log(getAnswer('2022-02-14')) // returns the answer for 14th of February 2022Why?
I was bored.
