@nwylynko/how-long-ago

tiny dependency free package to get human readable time from timestamp

Usage no npm install needed!

<script type="module">
  import nwylynkoHowLongAgo from 'https://cdn.skypack.dev/@nwylynko/how-long-ago';
</script>

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