# time-to-ms

> The package that converts time to milliseconds.

Latest version **1.0.2** (published 2021-05-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install time-to-ms
pnpm add time-to-ms
yarn add time-to-ms
bun add time-to-ms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-05-26 |
| First published | 2021-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ramostark |
| Maintainers | ramostark |

## Links

- npm: https://www.npmjs.com/package/time-to-ms
- npm.io page: https://npm.io/package/time-to-ms

## Recent versions

- 1.0.2 (latest) — 2021-05-26
- 1.0.1 — 2021-05-26
- 1.0.0 — 2021-05-26

## README

# what is this

The package that converts time to milliseconds.

# Installattion

`npm install time-to-ms`

```
const ms = require("time-to-ms")

ms("1s") //1000 milisecond
ms("1m") //60000 milisecond
ms("1h") //3600000 milisecond
ms("1d") //86400000 milisecond
ms("1w") //604800000 milisecond
ms("1y") //31557600000 milisecond
```

# Arguments

* s = seconds
* m = minutes
* h = hours
* d = days
* w = week
* y = years

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