Sha256: 7f84608411c5db35db3a6817e7f886ecd65a0446049439a62a90c1d6e6d99e96

Contents?: true

Size: 272 Bytes

Versions: 24

Compression:

Stored size: 272 Bytes

Contents

/**
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;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.50 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.49 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.48 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.47 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.46 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.45 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.44 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.43 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.42 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.41 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.40 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.39 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.38 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.32 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.31 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.30 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.29 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.28 node_modules/widest-line/index.d.ts
immosquare-cleaner-0.1.27 node_modules/widest-line/index.d.ts