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 agoInstallation
$ npm i @nuff-said/time-agoContributing
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.