UNPKG

henkaku

Version:

Functions to convert UTF-8 characters between full-width 全角 and half-width 半角

16 lines (15 loc) 379 B
/** * Convert a string to full-width. * * @param str - The string to convert. * @returns The converted string. */ declare const toFullWidth: (str: string) => string; /** * Convert a string to half-width. * * @param str - The string to convert. * @returns The converted string. */ declare const toHalfWidth: (str: string) => string; export { toFullWidth, toHalfWidth };