[go: nahoru, domu]

humanize-time

0.0.3 • Public • Published

Humanize time

Downloads

Converts miliseconds to human-readable format.

Install

npm install humanize-time

Example

  var time = require('humanize-time')

  time(2000)    // '2s'
  time(62000)   // '1m, 2s'
  time(3662000) // '1h, 1m, 2s'

License

MIT

Package Sidebar

Install

npm i humanize-time

Weekly Downloads

162

Version

0.0.3

License

MIT

Unpacked Size

4.93 kB

Total Files

7

Last publish

Collaborators

  • shime