UNPKG

@igk19/rus-text-gen

Version:

Generator of coherent and random texts in Russian language from real texts containing (as of now) about 30000 words.

12 lines (11 loc) 422 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getFilePath; // Had to create this JavaScript module and allowJS in tsconfig.json // to use this function because `import.meta.filename` is not available // in NodeJS when compiling to CommonJS module. function getFilePath() { return typeof __filename !== "undefined" ? __filename : import.meta.filename; }