Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nwylynko/howlongago
- Owner: NWylynko
- Created: 2020-04-27T12:45:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T12:37:25.000Z (over 4 years ago)
- Last Synced: 2024-10-25T23:09:34.931Z (3 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
````