How to Install timeago.js NPM Packages on Ubuntu / Debian

How to Install timeago.js software package in NPM Packages

timeago.js : timeago.js is a simple library (only 2kb) to used to format datetime with `*** time ago` statement. eg: 3 hours ago. localization supported.. You can installing timeago.js 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 timeago.js
$ sudo npm install -g timeago.js

If want to update the timeago.js package execute the command as below,

$ sudo npm update timeago.js

Update package globally,

$ npm install -g timeago.js

Git clone:

$ sudo  git clone https://github.com/rektide/timeago.js.git
$ sudo  npm install -g ./timeago.js

timeago.js@3.0.2 /usr/lib/node_modules/timeago.js

How to remove timeago.js package :

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

$ sudo npm uninstall timeago.js

Basic Information of timeago.js NPM Package:

Package Name timeago.js
Version 3.0.2
Description timeago.js is a simple library (only 2kb) to used to format datetime with `*** time ago` statement. eg: 3 hours ago. localization supported.
Released Date 2017-06-23T13:22:33.459Z
Published by atool
How to Learn https://www.npmjs.com/package/timeago.js/tutorial