Skip to content

Instantly share code, notes, and snippets.

View Eddolan's full-sized avatar

Eddie Dolan Eddolan

View GitHub Profile
var fs = require('fs');
fs.readFile('subtitle.srt', function(error, data) {
if(error)
throw error;
var text = data.toString();
var lines = text.split('\n');
var output = [];