Gathering detailed insights and metrics for iptv-playlist-parser
Gathering detailed insights and metrics for iptv-playlist-parser
Gathering detailed insights and metrics for iptv-playlist-parser
Gathering detailed insights and metrics for iptv-playlist-parser
esx-iptv-playlist-parser
A basic IPTV playlist parser
@iptv/playlist
An extremely fast M3U playlist parser and generator for Node and the browser.
m3u-parser-generator
Library to parse and generate m3u or m3u8 IPTV playlist files
@tunarr/playlist
An extremely fast M3U playlist parser and generator for Node and the browser.
npm install iptv-playlist-parser
Typescript
Module System
Node Version
NPM Version
75.2
Supply Chain
97.6
Quality
76.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
7,401,726
Last Day
83
Last Week
788
Last Month
5,383
Last Year
57,177
MIT License
133 Stars
136 Commits
35 Forks
15 Watchers
1 Branches
4 Contributors
Updated on May 13, 2025
Minified
Minified + Gzipped
Latest Version
0.14.0
Package Id
iptv-playlist-parser@0.14.0
Unpacked Size
31.10 kB
Size
7.01 kB
File Count
25
NPM Version
9.8.1
Node Version
22.12.0
Published on
Mar 09, 2025
Cumulative downloads
Total Downloads
Last Day
-44.3%
83
Compared to previous day
Last Week
-16.4%
788
Compared to previous week
Last Month
2.7%
5,383
Compared to previous month
Last Year
24.3%
57,177
Compared to previous year
2
3
It parses IPTV playlist and converts it to a regular JavaScript object.
1npm install iptv-playlist-parser
1const parser = require('iptv-playlist-parser') 2// import parser from 'iptv-playlist-parser' 3 4const playlist = `#EXTM3U x-tvg-url="http://example.com/epg.xml.gz" 5#EXTINF:-1 tvg-id="cnn.us" tvg-name="CNN" tvg-url="http://195.154.221.171/epg/guide.xml.gz" tvg-shift="-4.5" timeshift="3" catchup="shift" catchup-days="3" catchup-source="https://m3u-server/hls-apple-s4-c494-abcdef.m3u8?utc=325234234&lutc=3123125324" lang="eng" tvg-logo="http://example.com/logo.png" group-title="News",CNN (US) 6#EXTGRP:News 7#EXTVLCOPT:http-referrer=http://example.com/ 8#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) 9http://example.com/stream.m3u8` 10 11const result = parser.parse(playlist) 12 13console.log(result)
1const fs = require('fs') 2const parser = require('iptv-playlist-parser') 3 4const playlist = fs.readFileSync('playlist.m3u', 'utf8') 5 6const result = parser.parse(playlist) 7 8console.log(result)
1const https = require('https') 2const parser = require('iptv-playlist-parser') 3 4https 5 .get('https://example.com/playlist.m3u', res => { 6 let data = [] 7 8 res.on('data', chunk => { 9 data.push(chunk) 10 }) 11 12 res.on('end', () => { 13 const playlist = Buffer.concat(data).toString() 14 15 const result = parser.parse(playlist) 16 17 console.log(result) 18 }) 19 }) 20 .on('error', err => { 21 console.error(err.message) 22 })
1{ 2 header: { 3 attrs: { 4 'x-tvg-url': 'http://example.com/epg.xml.gz' 5 }, 6 raw: '#EXTM3U x-tvg-url="http://example.com/epg.xml.gz"' 7 }, 8 items: [ 9 { 10 name: 'CNN (US)', 11 tvg: { 12 id: 'cnn.us', 13 name: 'CNN', 14 url: 'http://195.154.221.171/epg/guide.xml.gz', 15 logo: 'http://example.com/logo.png', 16 rec: '', 17 shift: '-4.5' 18 }, 19 group: { 20 title: 'News' 21 }, 22 http: { 23 referrer: 'http://example.com/', 24 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)' 25 }, 26 url: 'http://example.com/stream.m3u8', 27 raw: '#EXTINF:-1 tvg-id="cnn.us" tvg-name="CNN" tvg-url="http://195.154.221.171/epg/guide.xml.gz" tvg-shift="-4.5" timeshift="3" catchup="shift" catchup-days="3" catchup-source="https://m3u-server/hls-apple-s4-c494-abcdef.m3u8?utc=325234234&lutc=3123125324" tvg-logo="http://example.com/logo.png" group-title="News",CNN (US)\n#EXTVLCOPT:http-referrer=http://example.com/\n#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)\nhttp://example.com/stream.m3u8', 28 line: 2, 29 timeshift: '3', 30 catchup: { 31 type: 'shift', 32 source: 'https://m3u-server/hls-apple-s4-c494-abcdef.m3u8?utc=325234234&lutc=3123125324', 33 days: '3' 34 }, 35 lang: 'eng' 36 }, 37 //... 38 ] 39}
1npm test
If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-12
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More