How to Install pretty-seconds NPM Packages on Ubuntu / Debian

How to Install pretty-seconds software package in NPM Packages

pretty-seconds : a very simple function to stringify any huge number of seconds. give it million seconds and it tells you how many days, hours, minutes and seconds in a pretty string.. You can installing pretty-seconds 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 pretty-seconds
$ sudo npm install -g pretty-seconds

If want to update the pretty-seconds package execute the command as below,

$ sudo npm update pretty-seconds

Update package globally,

$ npm install -g pretty-seconds

Git clone:

$ sudo  git clone https://github.com/rektide/pretty-seconds.git
$ sudo  npm install -g ./pretty-seconds

pretty-seconds@0.2.1 /usr/lib/node_modules/pretty-seconds

How to remove pretty-seconds package :

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

$ sudo npm uninstall pretty-seconds

Basic Information of pretty-seconds NPM Package:

Package Name pretty-seconds
Version 0.2.1
Description a very simple function to stringify any huge number of seconds. give it million seconds and it tells you how many days, hours, minutes and seconds in a pretty string.
Released Date 2016-08-17T21:45:59.581Z
Published by michael.heuberger
How to Learn https://www.npmjs.com/package/pretty-seconds/tutorial