You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

srtparsejs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srtparsejs - npm Package Compare versions

Comparing version

to
1.0.2

.github/workflows/npm-publish.yml

1

index.js

@@ -0,1 +1,2 @@

// https://github.com/Qiming-Liu/srtparse.js
export default class srtParser {

@@ -2,0 +3,0 @@ static correctFormat(time) {

6

package.json
{
"name": "srtparsejs",
"version": "1.0.1",
"version": "1.0.2",
"description": "A javascript .srt file parser and player",
"homepage": "https://github.com/Qiming-Liu/srtparse.js",
"main": "index.js",

@@ -19,3 +20,2 @@ "type": "module",

},
"homepage": "https://github.com/Qiming-Liu/srtparse.js",
"keywords": [

@@ -28,2 +28,2 @@ "subtitle",

]
}
}

@@ -21,10 +21,2 @@ # srt-parse.js

/* result:
[
{
id: 1,
start: 11.544,
end: 12.682,
text: 'Hello'
}
]
[{

@@ -90,11 +82,7 @@ id: '1',

setInterval(() => {
if (pause) return;
ms += interval
//update to specific time
player.update(srtparser.toTime(ms))
}, interval)
```