@mskelton/time-ago
Installation
npm
npm install @mskelton/time-ago
Yarn
yarn add @mskelton/time-ago
Usage
import timeAgo from "@mskelton/time-ago"
console.log(timeAgo(new Date())) // now
Formats a date using the Intl RelativeTimeFormat API with automatic unit selection.
npm install @mskelton/time-ago
yarn add @mskelton/time-ago
import timeAgo from "@mskelton/time-ago"
console.log(timeAgo(new Date())) // now
Formats a date using the Intl RelativeTimeFormat API with automatic unit selection.
ISC License