Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
node-m3u8 is a streaming m3u8 parser tailored for dealing with Apple's HTTP Live Streaming protocol. It may work for other m3u files, but I have not tested it for those uses.
var m3u8 = require('m3u8');
var fs = require('fs');
var parser = m3u8.createStream();
var file = fs.createReadStream('/path/to/file.m3u8');
file.pipe(parser);
parser.on('item', function(item) {
// emits PlaylistItem, MediaItem, StreamItem, and IframeStreamItem
});
parser.on('m3u', function(m3u) {
// fully parsed m3u file
});
All items and the m3u object have toString()
methods for conversion to m3u8.
Attributes and properties have getter/setters on m3u and item objects:
parser.on('item', function(item) {
var duration = item.get('bandwidth');
item.set('uri', 'http://example.com/' + item.get('uri'));
});
The M3U and Item objects are available on m3u8:
var m3u8 = require('m3u8');
var m3u = m3u8.M3U.create();
m3u.addPlaylistItem({
duration : 10,
uri : 'file'
});
See tests for more usage patterns.
FAQs
streaming m3u8 parser for Apple's HTTP Live Streaming protocol
The npm package m3u8 receives a total of 142 weekly downloads. As such, m3u8 popularity was classified as not popular.
We found that m3u8 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.