Socket
Book a DemoInstallSign in
Socket

string-width-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-width-cli

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

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

string-width-cli Build Status

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

Some Unicode characters are fullwidth and use double the normal width.

Useful to be able to measure the actual width of command-line output.

Install

$ npm install --global string-width-cli

Usage

$ string-width --help

  Usage
    $ string-width <text>

  Example
    $ string-width a古
    3
  • string-width - API for this module

License

MIT © Sindre Sorhus

Keywords

cli-app

FAQs

Package last updated on 13 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts