README
howLongAgo
tiny dependency free package to get human readable time from timestamp
usage
import HowLongAgo from '@nwylynko/how-long-ago'
const timestamp = Date.now() - 2000
console.log(HowLongAgo(timestamp))
----
2 Seconds Ago
tiny dependency free package to get human readable time from timestamp
<script type="module">
import nwylynkoHowLongAgo from 'https://cdn.skypack.dev/@nwylynko/how-long-ago';
</script>
tiny dependency free package to get human readable time from timestamp
import HowLongAgo from '@nwylynko/how-long-ago'
const timestamp = Date.now() - 2000
console.log(HowLongAgo(timestamp))
----
2 Seconds Ago