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.

16 lines (15 loc) 671 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTempFilepath = void 0; const os_1 = __importDefault(require("os")); const path_1 = __importDefault(require("path")); const getHash_1 = require("./getHash"); const OUTPUT_DIRECTORY = path_1.default.resolve(os_1.default.homedir(), '.scrabble-solver'); const getTempFilepath = () => { const filename = `${(0, getHash_1.getHash)()}.txt`; return path_1.default.join(OUTPUT_DIRECTORY, filename); }; exports.getTempFilepath = getTempFilepath;