string-length-cli
v3.0.0
Published
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Downloads
6
Maintainers
Readme
string-length-cli
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.
Install
$ npm i -g string-length-cli
Usage
$ string-length --help
Usage
$ string-length <text> [more...]
Example
$ string-length Jiong囧
6
Related
- string-length - API for this module
License
MIT © LitoMore