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).

14 lines (10 loc) 321 B
import pangu, { BrowserPangu } from './pangu'; // eslint-disable-next-line @typescript-eslint/no-explicit-any (pangu as any).BrowserPangu = BrowserPangu; // Declare global for UMD builds declare global { interface Window { pangu: typeof pangu & { BrowserPangu: typeof BrowserPangu }; } } export default pangu;