An open API service indexing awesome lists of open source software.

https://github.com/shime/humanize-time

Converts miliseconds to human-readable format.
https://github.com/shime/humanize-time

Last synced: about 1 year ago
JSON representation

Converts miliseconds to human-readable format.

Awesome Lists containing this project

README

          

## Humanize time

[![Downloads](https://img.shields.io/npm/dt/humanize-time.svg)](https://npmjs.org/package/humanize-time)

Converts miliseconds to human-readable format.

## Install

npm install humanize-time

## Example

```javascript
var time = require('humanize-time')

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

## License

MIT