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