Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wordle-wordlist

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordle-wordlist

An easy way to fetch wordle's wordlist!

  • 1.0.1-c
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

wordle-wordlist

easy way to fetch wordle's wordlist

npm

usage

First install the module:

npm i wordle-wordlist

Import the module

var wordlist = require("wordle-wordlist")

Access the latest wordlist:

  • Allowed guesses(doesnt contain answers) - wordlist.guesses()
  • Possible answers - wordlist.answers()
  • All words (most used) - wordlist.all()

NOTE: ALL FUNCTIONS RETURN PROMISES!!!

MAKE SURE TO USE A PROMISE OR await

EXAMPLE USAGE:

var wordlist = require("wordle-wordlist")

var allowedGuesses;
wordlist.guesses().then((words) => {
  allowedGuesses = words;
}).catch((e) => {
  console.log(e)
})

console.log(allowedGuesses) //array of words in alphabetical order

Example with async/await

var wordlist = require("wordle-wordlist")

async function go() {
var allowedGuesses = await wordlist.guesses()

console.log(allowedGuesses) //array of words in alphabetical order
}

hate promises or async functions?

well don't worry, you can use the cache wordlist.

I will try to keep it up to date, but no guarantees.

access cached wordlist:

var wordlist = require("wordle-wordlist")

var guessesOnly = wordlist.cache.guesses
var answersOnly = wordlist.cache.answers
var allWords = wordlist.cache.all

Keywords

FAQs

Package last updated on 02 Feb 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

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