Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@openstapps/feed-importer
Advanced tools
It's a library (npm package) which makes fetching data of an Atom or RSS feed easier.
In it's core, this is a wrapper for Atom/RSS parsing library feedparser.
Compared to feedparser
, this libary is much simpler to use, in a sense that a developer just needs to provide the URL of a feed, and he is already able to get that feeds items as an array of JavaScript objects.
It's installed easily via npm:
npm install @openstapps/feed-importer
After FeedImporter
class is imported, e.g.:
import {FeedImporter} from '@openstapps/feed-importer';
an object needs to be created, and afterwards we are ready to use its getItems
method:
const feedImporter = new FeedImporter('http://some-url.domain'); // create an object
const feedItems = await feedImporter.getItems();
// do something with the items from the feed
const feedItemsFiltered = await feedImporter.getItems(['title', 'description']);
// after fetching from the feed, items are filtered to contain only 'title' and 'description' properties
If you want to further develop this library or to just see how it works, these are useful commands:
npm install
npm run build
For running tests:
npm run test # or npm test
FAQs
Fetches items from an Atom or RSS feed
We found that @openstapps/feed-importer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.