
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@download/podcastjs
Advanced tools
podcast.js fetches and parses podcast RSS fields so you don't have to!
podcast.js fetches and parses podcast RSS fields so you don't have to!
Plus, it comes with TypeScript typings out of the box.
This is based on justinvos version, but uses a slightly different API which enables it to omit most of the dependencies. Also has bugfixes related to parsing guids.
yarn add @download/podcastjs
npm install @download/podcastjs
const { parsePodcast } = require('@download/podcastjs')
const serialRssUrl = 'http://feeds.serialpodcast.org/serialpodcast'
podcastJs.parsePodcast(serialRssUrl).then((podcast) => {
console.log(podcast.title)
})
import { parsePodcast, Podcast } from '@download/podcastjs'
const res = await fetch('http://feeds.serialpodcast.org/serialpodcast')
const serialRss = await res.text()
parsePodcast(serialRss).then((podcast: Podcast) => {
console.log(podcast.title)
})
Parse a string comprising an XML-RSS file.
parsePodcast(rssFileContents)
Parameters:
rssFileContents
- The podcast's RSS feed's contentsReturns a Podcast
object (defined below)
title
- The title of the podcast e.g. "Serial"
description
- A description of the podcast e.g. "Serial is a podcast from the creators of..."
episodes
- A list of Episode objects associated with this Podcast (defined below)Optional Properties:
date
- The publication date of the podcast feed as a Date objecturl
- The URL of the podcast's RSS feed e.g. "http://feeds.serialpodcast.org/serialpodcast"
image
- The podcast's image e.g. "https://serialpodcast.org/sites/all/modules/custom/serial/img/serial-itunes-logo.png"
title
- The title of the episode e.g. "S01 Episode 01: The Alibi"
description
- A description of the podcast e.g. "It's Baltimore, 1999. Hae Min Lee, a popular high-sch..."
audio
- The URL of the audio file for this episode e.g. "https://dts.podtrac.com/redirect.mp3/dovetail.prxu.org/serial/d7f03a15-be26-4634-8884-5fadd404ad75/serial-s01-e01.mp3"
index
- The physical ordering of this episode in the RSS feed e.g. 28
guid
- A human-defined global identifier e.g. s02-e11
Optional Properties
date
- The publication date of the podcast feed as a Date objectimage
- The podcast's image e.g. "https://serialpodcast.org/sites/all/modules/custom/serial/img/serial-itunes-logo.png"
FAQs
podcast.js fetches and parses podcast RSS fields so you don't have to!
We found that @download/podcastjs 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.