# normalplaytime

> Parser for Normal Play Time (RFC 2326)

Latest version **1.0.6** (published 2017-01-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-01-10 |
| First published | 2016-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/normalplaytime) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric Teubert |
| Maintainers | ericteubert |
| Keywords | parser |

## Links

- npm: https://www.npmjs.com/package/normalplaytime
- Repository: https://github.com/eteubert/normalplaytime
- Homepage: https://github.com/eteubert/normalplaytime#readme
- Issues: https://github.com/eteubert/normalplaytime/issues
- npm.io page: https://npm.io/package/normalplaytime

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-01-10
- 1.0.5 — 2017-01-08
- 1.0.4 — 2017-01-05
- 1.0.3 — 2016-12-22
- 1.0.2 — 2016-12-08
- 1.0.1 — 2016-12-08
- 1.0.0 — 2016-12-08

## README

# NormalPlayTime Parser

Parser for Normal Play Time (RFC 2326).

## Installation

```bash
npm install normalplaytime
```

## Example

```js
var npt = require('normalplaytime');

var ms1 = npt.parse("1");   // return 1000
var ms2 = npt.parse("1.2"); // return 1200

```

More Specs: (output from `npm test`)

```
should return null for invalid strings
should return 1000 for "1"
should return 1234 for "1.234"
should return 754000 for "12:34"
should return 754560 for "12:34.56"
should return 62000 for "1:2"
should return 3723400 for "1:2:3.4"
```

## Development

```
npm install
npm test
```

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