UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

12 lines (11 loc) 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWordList = void 0; const types_1 = require("@scrabble-solver/types"); const lib_1 = require("../lib"); const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/refs/heads/master/french/ods8.txt'; const getWordList = async () => { const words = await (0, lib_1.getTxtWordList)(FILE_URL, types_1.Locale.FR_FR); return (0, lib_1.transliterateDiacritics)(words); }; exports.getWordList = getWordList;