# milliseconds-converter

> Insanely lightweight module for converting times to milliseconds.

Latest version **1.0.0** (published 2020-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install milliseconds-converter
pnpm add milliseconds-converter
yarn add milliseconds-converter
bun add milliseconds-converter
```

## 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.0 |
| Published | 2020-11-15 |
| First published | 2020-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JediThePro |
| Maintainers | jedithepro |
| Keywords | time, conversion, milliseconds |

## Links

- npm: https://www.npmjs.com/package/milliseconds-converter
- Repository: https://github.com/JediThePro/milliseconds
- Homepage: https://github.com/JediThePro/milliseconds#readme
- Issues: https://github.com/JediThePro/milliseconds/issues
- npm.io page: https://npm.io/package/milliseconds-converter

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-11-15

## README

# milliseconds-converter

Insanely lightweight module for converting times to milliseconds.

Literally 9 lines of code, it's just to make writing time in a way that's more readable without having to remember how many milliseconds are in a day, week, month, year.

## Installation

```
npm install milliseconds-converter
```

## Example

```javascript
const ms = require('milliseconds-converter');

ms.seconds(2); // 2000
ms.minutes(2); // 120000
ms.hours(2);   // 7200000
ms.days(2);    // 172800000
ms.weeks(2);   // 1209600000
ms.months(2);  // 5259600000
ms.years(2);   // 63115200000
```

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