nice-ago

1.0.1 • Public • Published

nice-ago

generate terse time representations.

takes the two largest time units, so ten seconds ago is rendered as "10s" but a minute and a half ago is "1m30s" the yesterday morning might be "1d5h" etc, the largest unit is a year. jumps straight from days to years because months are not all the same size!

License

MIT

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i nice-ago

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dominictarr