# srt-to-vtt

> Transform stream that converts srt files to vtt files (html5 video subtitles)

Latest version **1.1.3** (published 2018-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install srt-to-vtt
pnpm add srt-to-vtt
yarn add srt-to-vtt
bun add srt-to-vtt
```

Provides the command `srt-to-vtt`.

## 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.1.3 |
| Published | 2018-08-16 |
| First published | 2014-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/srt-to-vtt) |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 91 |
| Author | Mathias Buus |
| Maintainers | mafintosh |
| Keywords | html5, video, subtitles |

## Links

- npm: https://www.npmjs.com/package/srt-to-vtt
- Repository: https://github.com/mafintosh/srt-to-vtt
- Issues: https://github.com/mafintosh/srt-to-vtt/issues
- npm.io page: https://npm.io/package/srt-to-vtt

## Dependencies (6)

- [split2](https://npm.io/package/split2.md) ^0.2.1
- [pumpify](https://npm.io/package/pumpify.md) ^1.3.3
- [minimist](https://npm.io/package/minimist.md) ^1.1.0
- [through2](https://npm.io/package/through2.md) ^0.6.3
- [to-utf-8](https://npm.io/package/to-utf-8.md) ^1.2.0
- [duplexify](https://npm.io/package/duplexify.md) ^3.2.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2018-08-16
- 1.1.2 — 2018-04-12
- 1.1.1 — 2016-04-16
- 1.1.0 — 2016-04-15
- 1.0.3 — 2015-08-11
- 1.0.2 — 2015-01-03
- 1.0.1 — 2015-01-02
- 1.0.0 — 2014-12-25

## README

# srt-to-vtt

Transform stream that converts srt files to vtt files.
vtt files are used to provide subtitles in html5 video

```
npm install srt-to-vtt
```

[![build status](http://img.shields.io/travis/mafintosh/srt-to-vtt.svg?style=flat)](http://travis-ci.org/mafintosh/srt-to-vtt)

## Usage

``` js
var srt2vtt = require('srt-to-vtt')
var fs = require('fs')

fs.createReadStream('some-subtitle-file.srt')
  .pipe(srt2vtt())
  .pipe(fs.createWriteStream('some-html5-video-subtitle.vtt'))
```

## Command line usage

There is also a command line tool available

```
npm install -g srt-to-vtt
srt-to-vtt --help
```

## License

MIT

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