humanize-ms
Version:
transform humanize time to ms
44 lines (30 loc) • 1.34 kB
Markdown
# humanize-ms
[![NPM version][npm-image]][npm-url]
[](https://github.com/node-modules/humanize-ms/actions/workflows/nodejs.yml)
[![Test coverage][codecov-image]][codecov-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/humanize-ms.svg?style=flat-square
[npm-url]: https://npmjs.org/package/humanize-ms
[codecov-image]: https://codecov.io/gh/node-modules/humanize-ms/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/node-modules/humanize-ms
[snyk-image]: https://snyk.io/test/npm/humanize-ms/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/humanize-ms
[download-image]: https://img.shields.io/npm/dm/humanize-ms.svg?style=flat-square
[download-url]: https://npmjs.org/package/humanize-ms
transform humanize time to ms
## Installation
```bash
npm install humanize-ms
```
## Examples
```typescript
import { ms } from 'humanize-ms';
ms('1s') // 1000
ms(1000) // 1000
```
### License
[MIT](LICENSE)
## Contributors
[](https://github.com/node-modules/humanize-ms/graphs/contributors)
Made with [contributors-img](https://contrib.rocks).