Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

m3u8parse-dumpfile-pmb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m3u8parse-dumpfile-pmb

Read a file, m3u8parse() it, and dump the result as JSON.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

m3u8parse-dumpfile-pmb

Read a file, m3u8parse() it, and dump the result as JSON.

Usage

var inputFile = (process.argv[2] || process.stdin.fd),
  readAndDump_m3u8 = require('m3u8parse-dumpfile-pmb');

readAndDump_m3u8(inputFile, function report(err, json) {
  if (err) { throw err; }
  if (json.substr(0, 1) !== '{') { throw new Error('Expected a JSON object'); }
  console.log(json);
});
$ m3u8parse-dumpfile-pmb streams.m3u8 | grep -m 1 -C 2 -Fe e-band
    { "info": {
        "bandwidth": "1322894",
        "average-bandwidth": "568881",
        "codecs": "\"avc1.64001f,mp4a.40.2\"",
        "resolution": "1280x720",

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Keywords

JSON

FAQs

Package last updated on 04 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts