string-width

Get the visual width of a string - the number of columns required to display it

Browse on unpkg