JSPM

@nuff-said/time-ago

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53
  • Score
    100M100P100Q72112F
  • License GPL-3.0

A library to format the difference between dates

Package Exports

  • @nuff-said/time-ago
  • @nuff-said/time-ago/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nuff-said/time-ago) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@nuff-said/time-ago

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.