@nuff-said/time-ago

1.0.1 • Public • Published

A compact library to check how far back a date was, in 167 bytes minzipped and brotlied.

import timeAgo from '@nuff-said/time-ago'
console.log(timeAgo(new Date(0))) // 54 years ago

Installation

$ npm i @nuff-said/time-ago

Contributing

All contributions are welcome! Feel free to file an issue, point out an optimization or even push a PR!

License

This project uses the GPL-3.0 license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    25
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    25
  • 1.0.0
    1

Package Sidebar

Install

npm i @nuff-said/time-ago

Weekly Downloads

26

Version

1.0.1

License

GPL-3.0

Unpacked Size

1.51 kB

Total Files

3

Last publish

Collaborators

  • siddharthshyniben