linegauge
API reference

linegauge/widest-line

Every export of linegauge/widest-line, with its signature and doc comment: widestLine.

import widestLine from 'linegauge/widest-line';

Functions

default

The default export, declared as widestLine.

The width of the widest line in string, in terminal columns.

function widestLine(string: string): number;
ParameterType
stringstring

Returns number

On this page