npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wordle-word

v1.0.0

Published

Simple package to fetch Wordle solutions

Readme

wordle-word

npm version

A simple CLI tool and Node.js module to fetch Wordle solutions for various dates.


Features

  • Get Today's Solution: Quickly retrieve the current day's Wordle solution.
  • Solutions for the Next Week: See upcoming Wordle answers.
  • Custom Date Solutions: Look up the Wordle solution for any specific date.
  • Easy to Use: A straightforward command-line interface.

Installation

You can install wordle-word globally via npm, which makes the wordle command available in your terminal from any directory.

npm install -g wordle-word

If you plan to use it as a module in another project, install it as a dependency:

npm install wordle-word

Requirements

This package uses the native fetch API, which is available in Node.js versions > 18 (experimental) and stable in versions later than 21. Please ensure you're running a compatible version of Node.js for the CLI tool to function correctly.

You can check your Node.js version with:

node -v

Usage

As a Command-Line Tool (CLI)

Once installed globally, you can use the wordle command with various options:

  • Get Today's Wordle Solution
    Simply run the wordle command without any arguments:

    wordle

    This will fetch and display the Wordle solution for your local current date.

  • Get Wordle Solutions for the Next Week
    To view the solutions for today and the next six days:

    wordle --next-week
    # Or using the shorthand:
    wordle -n
  • Get Wordle Solution for a Custom Date
    Specify a date in the YYYY-MM-DD format using the --date (or -d) option:

    wordle --date 2023-10-27
    # Or using the shorthand:
    wordle -d 2023-10-27
  • View Help and Version Information
    To see all available options and examples:

    wordle --help
    # Or using the shorthand:
    wordle -h

    To check the version of your installed wordle-word package:

    wordle --version
    # Or using the shorthand:
    wordle -v

As a Module

You can also import and use the getSolution function directly in your Node.js projects.

First, ensure wordle-word is installed as a local dependency:

npm install wordle-word

Then, in your project:

import { getSolution } from 'wordle-word';

async function displaySolution() {
    try {
        // Get today's solution
        const todaySolution = await getSolution(new Date());
        console.log(`Today's Wordle solution: ${todaySolution.toUpperCase()}`);

        // Get solution for a specific date
        const customDate = '2023-01-01'; // Example date
        const customSolution = await getSolution(customDate);
        console.log(`Wordle solution for ${customDate}: ${customSolution.toUpperCase()}`);

        // You can also iterate for multiple dates
        console.log('\nSolutions for the next 3 days:');
        for (let i = 0; i < 3; i++) {
            const date = new Date();
            date.setDate(date.getDate() + i);
            const solution = await getSolution(date);
            // Remember to format the date nicely for display if needed
            const year = date.getFullYear();
            const month = String(date.getMonth() + 1).padStart(2, '0');
            const day = String(date.getDate()).padStart(2, '0');
            console.log(`  ${year}-${month}-${day}: ${solution.toUpperCase()}`);
        }

    } catch (error) {
        console.error('Error:', error.message);
    }
}

displaySolution();

License

This project is licensed under the ISC License.