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: 12 days ago
JSON representation

transform humanize time to ms

Awesome Lists containing this project

README

        

# humanize-ms

[![NPM version][npm-image]][npm-url]
[![Node.js CI](https://github.com/node-modules/humanize-ms/actions/workflows/nodejs.yml/badge.svg)](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

[![Contributors](https://contrib.rocks/image?repo=node-modules/humanize-ms)](https://github.com/node-modules/humanize-ms/graphs/contributors)

Made with [contributors-img](https://contrib.rocks).