string-width : Get the visual width of a string - the number of columns required to display it. You can installing string-width npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install string-width $ sudo npm install -g string-width
If want to update the string-width package execute the command as below,
$ sudo npm update string-width
Update package globally,
$ npm install -g string-width
$ sudo git clone https://github.com/rektide/string-width.git
$ sudo npm install -g ./string-width
string-width@2.1.1 /usr/lib/node_modules/string-width
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall string-width
| Package Name | string-width |
| Version | 2.1.1 |
| Description | Get the visual width of a string - the number of columns required to display it |
| Released Date | 2017-07-18T11:09:15.295Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/string-width/tutorial |