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 (8 loc) 296 B
import os from 'os'; import path from 'path'; import { getHash } from './getHash'; const OUTPUT_DIRECTORY = path.resolve(os.homedir(), '.scrabble-solver'); export const getTempFilepath = (): string => { const filename = `${getHash()}.txt`; return path.join(OUTPUT_DIRECTORY, filename); };