Never Push to Master

    string-length-cli

    2.0.0 • Public • Published

    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

    Install

    npm i string-length-cli

    DownloadsWeekly Downloads

    46

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.11 kB

    Total Files

    4

    Last publish

    Collaborators

    • litomore