handy-timeago

1.0.2 • Public • Published

Handy-TimeAgo

Returns Time in ago format!! 🕗🕗🕗!!

Usage

import HandyTimeAgo from 'handy-timeago'
HandyTimeAgo(time:String||Number):String

Examples

import HandyTimeAgo from 'handy-timeago'
let time = new Date().getTime()-10000
console.log(HandyTimeAgo(time))
>> "10 seconds ago"

Thanks for reading!!

Package Sidebar

Install

npm i handy-timeago

Weekly Downloads

12

Version

1.0.2

License

ISC

Unpacked Size

116 kB

Total Files

6

Last publish

Collaborators

  • takkar