Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | humanize-ms
|
---|
| 2 | ---------------
|
---|
| 3 |
|
---|
| 4 | [![NPM version][npm-image]][npm-url]
|
---|
| 5 | [![build status][travis-image]][travis-url]
|
---|
| 6 | [![Test coverage][coveralls-image]][coveralls-url]
|
---|
| 7 | [![Gittip][gittip-image]][gittip-url]
|
---|
| 8 | [![David deps][david-image]][david-url]
|
---|
| 9 |
|
---|
| 10 | [npm-image]: https://img.shields.io/npm/v/humanize-ms.svg?style=flat
|
---|
| 11 | [npm-url]: https://npmjs.org/package/humanize-ms
|
---|
| 12 | [travis-image]: https://img.shields.io/travis/node-modules/humanize-ms.svg?style=flat
|
---|
| 13 | [travis-url]: https://travis-ci.org/node-modules/humanize-ms
|
---|
| 14 | [coveralls-image]: https://img.shields.io/coveralls/node-modules/humanize-ms.svg?style=flat
|
---|
| 15 | [coveralls-url]: https://coveralls.io/r/node-modules/humanize-ms?branch=master
|
---|
| 16 | [gittip-image]: https://img.shields.io/gittip/dead-horse.svg?style=flat
|
---|
| 17 | [gittip-url]: https://www.gittip.com/dead-horse/
|
---|
| 18 | [david-image]: https://img.shields.io/david/node-modules/humanize-ms.svg?style=flat
|
---|
| 19 | [david-url]: https://david-dm.org/node-modules/humanize-ms
|
---|
| 20 |
|
---|
| 21 | transform humanize time to ms
|
---|
| 22 |
|
---|
| 23 | ## Installation
|
---|
| 24 |
|
---|
| 25 | ```bash
|
---|
| 26 | $ npm install humanize-ms
|
---|
| 27 | ```
|
---|
| 28 |
|
---|
| 29 | ## Examples
|
---|
| 30 |
|
---|
| 31 | ```js
|
---|
| 32 | var ms = require('humanize-ms');
|
---|
| 33 |
|
---|
| 34 | ms('1s') // 1000
|
---|
| 35 | ms(1000) // 1000
|
---|
| 36 | ```
|
---|
| 37 |
|
---|
| 38 | ### License
|
---|
| 39 |
|
---|
| 40 | MIT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.