Skip to content
generated from mskelton/npm-template

Formats a date using the Intl RelativeTimeFormat API with automatic unit selection.

License

Notifications You must be signed in to change notification settings

mskelton/time-ago

Repository files navigation

@mskelton/time-ago

Build status

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

About

Formats a date using the Intl RelativeTimeFormat API with automatic unit selection.

Topics

Resources

License

Stars

Watchers

Forks