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.
- Host: GitHub
- URL: https://github.com/shime/humanize-time
- Owner: shime
- License: mit
- Created: 2014-09-06T21:30:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T15:07:03.000Z (over 4 years ago)
- Last Synced: 2024-04-13T21:31:49.936Z (about 2 years ago)
- Language: JavaScript
- Size: 70.3 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Humanize time
[](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