# humanize-ms

> transform humanize time to ms

Latest version **2.0.0** (published 2024-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install humanize-ms
pnpm add humanize-ms
yarn add humanize-ms
bun add humanize-ms
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-12-12 |
| First published | 2014-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 14.0.0 |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | dead-horse |
| Maintainers | dead_horse, fengmk2 |
| Keywords | humanize, ms |

## Links

- npm: https://www.npmjs.com/package/humanize-ms
- Repository: https://github.com/node-modules/humanize-ms
- Homepage: https://github.com/node-modules/humanize-ms#readme
- Issues: https://github.com/node-modules/humanize-ms/issues
- npm.io page: https://npm.io/package/humanize-ms

## Dependencies (1)

- [ms](https://npm.io/package/ms.md) ^2.1.3

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [@bcc-code/db_masker](https://npm.io/package/@bcc-code/db_masker.md) — 0 weekly downloads
- [mocksimple](https://npm.io/package/mocksimple.md) — 0 weekly downloads
- [@react-shimeji/character-red-medic-by-tesspy-665b23](https://npm.io/package/@react-shimeji/character-red-medic-by-tesspy-665b23.md) — 0 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2024-12-12
- 1.2.1 — 2017-05-19
- 1.2.0 — 2016-05-20
- 1.0.2 — 2016-04-04
- 1.0.1 — 2015-01-02
- 1.0.0 — 2014-08-14

## 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).

---
_Source: https://npm.io/package/humanize-ms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
