Socket
Book a DemoInstallSign in
Socket

vtt-shift

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vtt-shift

Time shifting of WebVTT text tracks

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
48
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

vtt-shift build badge

Transform stream that shifts WebVTT text tracks by the specified offset.

npm install vtt-shift

Usage

const vttshift = require('vtt-shift')
const fs = require('fs')

const options = { 
    offsetMs: 1000 // offset in milliseconds
}

fs.createReadStream('some-subtitle-file.vtt')
  .pipe(vttshift(options))
  .pipe(fs.createWriteStream('some-subtitle-file-shifted-by-1sec.vtt'))

Command line usage

There is also a command line tool available

npm install -g vtt-shift
vtt-shift --help
vtt-shift some-subtitle-file.vtt --offsetMs=1000 --out=some-subtitle-file-shifted-by-1sec.vtt

License

MIT

Keywords

vtt

FAQs

Package last updated on 17 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.