truncate : Truncate text and keep urls safe. You can installing truncate 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 truncate $ sudo npm install -g truncate
If want to update the truncate package execute the command as below,
$ sudo npm update truncate
Update package globally,
$ npm install -g truncate
$ sudo git clone https://github.com/rektide/truncate.git
$ sudo npm install -g ./truncate
truncate@2.0.0 /usr/lib/node_modules/truncate
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall truncate
| Package Name | truncate |
| Version | 2.0.0 |
| Description | Truncate text and keep urls safe |
| Released Date | 2015-09-17T17:11:23.481Z |
| Published by | fgribreau |
| How to Learn | https://www.npmjs.com/package/truncate/tutorial |