How to Install trim-right NPM Packages on Ubuntu / Debian

How to Install trim-right software package in NPM Packages

trim-right : Similar to String#trim() but removes only whitespace on the right. You can installing trim-right 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 trim-right
$ sudo npm install -g trim-right

If want to update the trim-right package execute the command as below,

$ sudo npm update trim-right

Update package globally,

$ npm install -g trim-right

Git clone:

$ sudo  git clone https://github.com/rektide/trim-right.git
$ sudo  npm install -g ./trim-right

trim-right@1.0.1 /usr/lib/node_modules/trim-right

How to remove trim-right package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall trim-right

Basic Information of trim-right NPM Package:

Package Name trim-right
Version 1.0.1
Description Similar to String#trim() but removes only whitespace on the right
Released Date 2015-07-15T20:19:55.126Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/trim-right/tutorial