UNPKG

pangu

Version:

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

18 lines (17 loc) 520 B
import { wt as Pangu } from "./shared-D5DWhyd7.js"; import { readFileSync } from "node:fs"; import { readFile } from "node:fs/promises"; //#region src/node/index.ts var NodePangu = class extends Pangu { async spacingFile(path) { const data = await readFile(path, "utf8"); return this.spacingText(data); } spacingFileSync(path) { return this.spacingText(readFileSync(path, "utf8")); } }; var pangu = new NodePangu(); //#endregion export { pangu as n, NodePangu as t }; //# sourceMappingURL=node-C2gy56uJ.js.map