longest-line
Get the longest line length of a string. It also correctly calculate the length of the line containing ansi escape codes.
Install
$ npm install --save longest-line
Usage
var longestLine = ; ;//=> 34 ;//=> 11
API
longestLine(input, [options])
input
Required
Type: string
options
stripAnsiCodes
Type: boolean
Default: true
Get the real length of a string.
License
MIT © Danilo Sampaio