@feelinglovelynow/get-relative-time

Simple function that recieves a Date object that is in the future or is in the past and gives back the relative time using Intl.RelativeTimeFormat('en', { numeric: 'auto' })

Browse on unpkg