1.0.0 • Published 7 years ago

howlongago v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

howlongago

A simple module to compare a datetime with now date

#Usage

Install the dependency

npm install howlongago --save

Add imports (javascript)

let hlag = require('howlongago');

Add imports (nodejs)

let hlag=require("howlongago");

get the date compare

console.log(howlongago(new Date('2017-10-05 20:59:22')))