human-elapsed

1.0.3 • Public • Published

HumanElapsed

A small module that translates seconds to elapsed (human) time

Try it in your browser

Just go to Runkit and click run

Usage

const HumanElapsed = require('human-elapsed')

HumanElapsed(10) // '10 seconds'
HumanElapsed(60) // '1 minute'
HumanElapsed(71) // '2 minutes 1 second'
HumanElapsed(1000122) // '11 days 13 hours 48 minutes 42 seconds'

Package Sidebar

Install

npm i human-elapsed

Weekly Downloads

164

Version

1.0.3

License

MIT

Unpacked Size

4.62 kB

Total Files

5

Last publish

Collaborators

  • zerodragon