Display time distances in a human readable format.
Install package:
pnpm i -D svelte-time-distance
Add to your UI:
<!-- Example.svelte -->
<script>
import { TimeDistance } from 'svelte-time-distance'
let timestamp = new Date()
</script>
<TimeDistance {timestamp} class="jumbo" />
MIT