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.

9 lines (8 loc) 329 B
// 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. export default function getFilePath() { return typeof __filename !== "undefined" ? __filename : import.meta.filename; }