You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
490 B

declare const widestLine: {
Get the visual width of the widest line in a string - the number of columns required to display it.
import widestLine = require('widest-line');
//=> 2
(input: string): number;
// TODO: remove this in the next major version, refactor definition to:
// declare function widestLine(input: string): number;
// export = widestLine;
default: typeof widestLine;
export = widestLine;