wrap-ansi : Wordwrap a string with ANSI escape codes. You can installing wrap-ansi 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 wrap-ansi $ sudo npm install -g wrap-ansi
If want to update the wrap-ansi package execute the command as below,
$ sudo npm update wrap-ansi
Update package globally,
$ npm install -g wrap-ansi
$ sudo git clone https://github.com/rektide/wrap-ansi.git
$ sudo npm install -g ./wrap-ansi
wrap-ansi@3.0.1 /usr/lib/node_modules/wrap-ansi
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall wrap-ansi
| Package Name | wrap-ansi |
| Version | 3.0.1 |
| Description | Wordwrap a string with ANSI escape codes |
| Released Date | 2017-07-23T19:58:53.494Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/wrap-ansi/tutorial |