Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
podcast-parser
Advanced tools
Welcome to the Podcast Parser for NodeJS.
With this module, you can download a podcast feed to a object.
$ npm install podcast-parser --save
var podcastParser = require('podcast-parser');
// podcastParser.execute(url, options, callback)
podcastParser.execute(
'http://feeds.serialpodcast.org/serialpodcast',
{},
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.download(url, callback)
podcastParser.download(
'http://feeds.serialpodcast.org/serialpodcast',
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.download(url, options, callback)
podcastParser.download(
'http://feeds.serialpodcast.org/serialpodcast',
{ timeout: 60 },
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.parse(xml, options, callback)
podcastParser.parse(
'<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel>' +
'<title>Nerdcast – Jovem Nerd</title><item><title>Nerdcast 514 ' +
'– Turistas Babacas 2</title><enclosure' +
' url="https://jovemnerd.com.br/podpress_trac/feed/148003/0/nc514.mp3"' +
' length="73512785" type="audio/mpeg" /></item></rss>',
{},
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
podcastParser.execute(url, options, callback)
Given the feed url, returns the object representation of the feed
string
)
string
: return as string
: Fri, 29 Apr 2016 06:27:42 +0000
array
: return as array
: [ 2016, 3, 29, 6, 27, 42 ]
number
: return as number
: 20160329062742
date
: return as Date
: new Date(2016, 3, 29, 6, 27, 42)
string
)
string
: return as string
: 1:41:56
array
: return as array
: [ 1, 41, 56 ]
number
: return as number
: 14156
string
)podcastParser.download(url, [options], callback)
Download the feed from the URL
string
)podcastParser.parse(xml, options, callback)
Parse to a object, the representation of the feed
string
)
string
: return as string
: Fri, 29 Apr 2016 06:27:42 +0000
array
: return as array
: [ 2016, 3, 29, 6, 27, 42 ]
number
: return as number
: 20160329062742
date
: return as Date
: new Date(2016, 3, 29, 6, 27, 42)
string
)
string
: return as string
: 1:41:56
array
: return as array
: [ 1, 41, 56 ]
number
: return as number
: 14156
FAQs
Feed parser with focus in podcasts
The npm package podcast-parser receives a total of 4 weekly downloads. As such, podcast-parser popularity was classified as not popular.
We found that podcast-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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.