Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nwylynko/howlongago

tiny dependency free package to get human readable time from timestamp
https://github.com/nwylynko/howlongago

Last synced: 30 days ago
JSON representation

tiny dependency free package to get human readable time from timestamp

Awesome Lists containing this project

README

        

# howLongAgo
tiny dependency free package to get human readable time from timestamp

## usage

```javascript
import HowLongAgo from '@nwylynko/how-long-ago'

const timestamp = Date.now() - 2000

console.log(HowLongAgo(timestamp))

----

2 Seconds Ago
````