srtparsejs
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
// https://github.com/Qiming-Liu/srtparse.js | ||
export default class srtParser { | ||
@@ -2,0 +3,0 @@ static correctFormat(time) { |
{ | ||
"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) | ||
``` |
10724
2.92%5
25%184
0.55%87
-12.12%