1.0.3 • Published 6 years ago

human-elapsed v1.0.3

Weekly downloads
42
License
MIT
Repository
github
Last release
6 years ago

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'