
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
simple-m3u-parser
Advanced tools
Parses simple M3U/M3U8 playlist files and returns JavaScript objects.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
AI-detected possible typosquat
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
m3u8-parser |
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
This is a simple JavaScript library for parsing M3U playlist files. It includes two classes: MediaPlaylist
for parsing entire M3U files and MediaPlaylistItem
for parsing individual items within the playlist.
npm install simple-m3u-parser
import { MediaPlaylist } from "simple-m3u-parser";
import fs from "fs";
// Example: Read M3U file as Uint8Array
const fileData = fs.readFileSync("example.m3u");
const playlist = new MediaPlaylist(fileData);
// Access playlist items
console.log(playlist.playlist_items);
import { MediaPlaylistItem } from "simple-m3u-parser";
// Example: Create a MediaPlaylistItem
const itemInfo = "#EXTINF:180,Song 1\nhttp://example.com/song1.mp3";
const playlistItem = new MediaPlaylistItem(itemInfo);
// Access properties of the playlist item
console.log(playlistItem.name);
console.log(playlistItem.duration);
console.log(playlistItem.uri);
console.log(playlistItem.attributes);
MediaPlaylistItem
name
: Name of the media item.duration
: Duration of the media item in seconds.uri
: Location of the media file.attributes
: Additional attributes defined in the #EXTINF tag.MediaPlaylist
playlist_items
: An array of MediaPlaylistItem
objects representing the items in the playlist.This project is licensed under the ISC License - see the LICENSE file for details.
FAQs
Parses simple M3U/M3U8 playlist files and returns JavaScript objects.
The npm package simple-m3u-parser receives a total of 0 weekly downloads. As such, simple-m3u-parser popularity was classified as not popular.
We found that simple-m3u-parser 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.