New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

srt-to-vtt

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srt-to-vtt - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

test/data/latin1.srt

3

index.js
var split = require('split2')
var pumpify = require('pumpify')
var through = require('through2')
var utf8 = require('to-utf-8')

@@ -27,3 +28,3 @@ module.exports = function () {

parse.push('WEBVTT FILE\r\n\r\n')
return pumpify(split(), parse)
return pumpify(utf8({newline: false, detectSize: 4095}), split(), parse)
}
{
"name": "srt-to-vtt",
"version": "1.0.3",
"version": "1.1.0",
"description": "Transform stream that converts srt files to vtt files (html5 video subtitles)",

@@ -10,3 +10,3 @@ "main": "index.js",

"scripts": {
"test": "standard && tape test.js"
"test": "standard && tape test/test.js"
},

@@ -18,3 +18,4 @@ "dependencies": {

"split2": "^0.2.1",
"through2": "^0.6.3"
"through2": "^0.6.3",
"to-utf-8": "^1.2.0"
},

@@ -21,0 +22,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc