UNPKG

pangu

Version:

Opinionated paranoid text spacing: automatically inserts whitespace between CJK (Chinese, Japanese, Korean) and ANS (alphabetical letters, numerical digits and symbols)

18 lines (17 loc) • 504 B
import { Pangu } from "../shared/index.js"; import { readFileSync } from "node:fs"; import { readFile } from "node:fs/promises"; //#region src/node/index.ts var NodePangu = class extends Pangu { async spaceFile(path) { const data = await readFile(path, "utf8"); return this.spaceText(data); } spaceFileSync(path) { return this.spaceText(readFileSync(path, "utf8")); } }; var pangu = new NodePangu(); //#endregion export { NodePangu, pangu as default, pangu }; //# sourceMappingURL=index.js.map