# stringytime

> Utility package to convert human readable timestrings to various time values

Latest version **1.0.1** (published 2020-01-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install stringytime
pnpm add stringytime
yarn add stringytime
bun add stringytime
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-01-26 |
| First published | 2020-01-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Valentin Degenne |
| Maintainers | vdegenne |
| Keywords | string, time, convenience |

## Links

- npm: https://www.npmjs.com/package/stringytime
- npm.io page: https://npm.io/package/stringytime

## 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.1 (latest) — 2020-01-26
- 1.0.0 — 2020-01-26

## README

# stringytime

Utility package to convert human readable timestrings to various time values.

```javascript
const stringytime = require('stringytime');

stringytime.toMilliseconds('1m'); // returns 60000
stringytime.toMs('1m'); // alias
```

You can use the `s` for second(s), `m` for minute(s), `h` for hour(s), `d` for day(s), `M` for month(s) and `y` for year(s).

## Installation

```
npm i stringytime
```

*note: it supports CJS, TypeScript and ES6 modules syntaxes.*

## Project State

I made this very quickly as a personal module to load in my external apps. So for now there is only this function implemented. But if you are interested about the idea, I accept PRs.

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