You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
314 B
JavaScript

"use strict";
const fs = require("fs");
const assert = require("assert");
const { Playlist } = require("./hls");
const { parse } = require("./index");
let file = process.argv[2];
assert(file != null);
parse(fs.readFileSync(file, "utf8"), Playlist).then((result) => {
console.dir(result, { depth: null });
});