Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/node-modules/humanize-ms
transform humanize time to ms
https://github.com/node-modules/humanize-ms
Last synced: 3 months ago
JSON representation
transform humanize time to ms
- Host: GitHub
- URL: https://github.com/node-modules/humanize-ms
- Owner: node-modules
- License: mit
- Created: 2014-08-14T07:51:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T08:54:59.000Z (almost 7 years ago)
- Last Synced: 2024-10-29T14:24:24.721Z (4 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 30
- Watchers: 16
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs - humanize-ms - Transform humanize time to ms. (Repository / Date & Time)
README
humanize-ms
---------------[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![David deps][david-image]][david-url][npm-image]: https://img.shields.io/npm/v/humanize-ms.svg?style=flat
[npm-url]: https://npmjs.org/package/humanize-ms
[travis-image]: https://img.shields.io/travis/node-modules/humanize-ms.svg?style=flat
[travis-url]: https://travis-ci.org/node-modules/humanize-ms
[coveralls-image]: https://img.shields.io/coveralls/node-modules/humanize-ms.svg?style=flat
[coveralls-url]: https://coveralls.io/r/node-modules/humanize-ms?branch=master
[gittip-image]: https://img.shields.io/gittip/dead-horse.svg?style=flat
[gittip-url]: https://www.gittip.com/dead-horse/
[david-image]: https://img.shields.io/david/node-modules/humanize-ms.svg?style=flat
[david-url]: https://david-dm.org/node-modules/humanize-mstransform humanize time to ms
## Installation
```bash
$ npm install humanize-ms
```## Examples
```js
var ms = require('humanize-ms');ms('1s') // 1000
ms(1000) // 1000
```### License
MIT