astro-ghostcms/.pnpm-store/v3/files/0f/da685489e059f91cc60b345bc64...

13 lines
272 B
Plaintext

/**
Get the visual width of the widest line in a string - the number of columns required to display it.
@example
```
import widestLine from 'widest-line';
widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2
```
*/
export default function widestLine(string: string): number;