• File: index.d.ts
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/widest-line/index.d.ts
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 490 bytes
  • MIME-type: text/plain
  • Charset: utf-8
declare const widestLine: {
	/**
	Get the visual width of the widest line in a string - the number of columns required to display it.

	@example
	```
	import widestLine = require('widest-line');

	widestLine('古\n\u001B[1m@\u001B[22m');
	//=> 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;