Extra Credit

string-width

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

$npm install string-width

Official docs outline

Extra Credit builds an outline of string-width's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484