UNPKG

fast-string-width

Version:

A fast function for calculating the visual width of a string once printed to the terminal.

5 lines (4 loc) 210 B
import type { WidthOptions as Options } from 'fast-string-truncated-width'; declare const fastStringWidth: (input: string, options?: Options) => number; export default fastStringWidth; export type { Options };