Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
String#length
errornously counts astral symbols as two characters.
npm i -g string-length-cli
$ string-length --help
Usage
$ string-length <text> [more...]
Example
$ string-length Jiong囧
6
- string-length - API for this module
MIT © LitoMore