# @tuxsudo/parsetime

> Simple time parsing function

Latest version **1.0.2** (published 2017-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tuxsudo/parsetime
pnpm add @tuxsudo/parsetime
yarn add @tuxsudo/parsetime
bun add @tuxsudo/parsetime
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-01-16 |
| First published | 2017-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tuxsudo |

## Links

- npm: https://www.npmjs.com/package/@tuxsudo/parsetime
- Repository: https://github.com/tuxsudo/parsetime
- Homepage: https://github.com/tuxsudo/parsetime#readme
- Issues: https://github.com/tuxsudo/parsetime/issues
- npm.io page: https://npm.io/package/@tuxsudo/parsetime

## Dependencies (1)

- [npm-run-all](https://npm.io/package/npm-run-all.md) ^4.0.0

## Recent versions

- 1.0.2 (latest) — 2017-01-16
- 1.0.1 — 2017-01-16
- 1.0.0 — 2017-01-16

## README

# Parse Time

Flexible time parsing - intended for extracting the time of day from user input.

```
import {parse} from '@tuxsudo/parsetime';

const {hours, minutes, seconds, time12, time24} = parse('1p');

// hours: 13 (int)
// minutes: 0 (int)
// seconds: 0 (int)
// time12: "01:00:00 pm"
// time24: "13:00:00"
```


## With CommonJS

```
const timeparser = require('@tuxsudo/parsetime');
timeparser.parse('333a');
```

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