@morpy/hangmanwords

1.0.0 • Public • Published

@morpy/hangmanwords

This Node.js module is used to store a list of french words that can be used to pick a word for hangman game, or for any other use case.

Installation

To install @morpy/hangmanwords in your Node.js application, run this command in a terminal :

npm install git+https://github.com/morpybot/hangman-words.git

Usage

const hangmanWords = require("@morpy/hangmanwords");

// The property 'WORDS' contains the list of all referenced words
const words = hangmanWords.WORDS;

// The function 'randomWord' picks randomly a word in the word list
const someWord = hangmanWords.randomWord();

You can also import it using ES6 desctructuration :

const { WORDS, randomWord } = require("@morpy/hangmanwords");

Sources

Base word list comes from this thread, but new words will come with updates.

Readme

Keywords

Package Sidebar

Install

npm i @morpy/hangmanwords

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

14.6 kB

Total Files

4

Last publish

Collaborators

  • austrian