Sitelet https://github.com/LitoMore/string-length-cli
Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT © LitoMore

About

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages