@robinpath/feed
v0.1.0
Published
> RSS, Atom, and JSON Feed creation, parsing, manipulation, and auto-detection
Keywords
Readme
@robinpath/feed
RSS, Atom, and JSON Feed creation, parsing, manipulation, and auto-detection
Why use this module?
The feed module lets you:
- Create RSS 2.0 feed
- Create Atom feed
- Create JSON Feed
- Parse RSS feed
- Parse Atom feed
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/feedQuick Start
No credentials needed — start using it right away:
feed.createAtom {"title": "My Blog", "link": "https://example.com", "items": [...]}Available Functions
| Function | Description |
|----------|-------------|
| feed.createRss | Create RSS 2.0 feed |
| feed.createAtom | Create Atom feed |
| feed.createJson | Create JSON Feed |
| feed.parseRss | Parse RSS feed |
| feed.parseAtom | Parse Atom feed |
| feed.parseJson | Parse JSON Feed |
| feed.detect | Detect feed format |
| feed.parse | Auto-detect and parse any feed |
| feed.addItem | Add item to feed config |
| feed.removeItem | Remove item by guid |
| feed.sortItems | Sort items by date |
| feed.filterItems | Filter items by field regex |
| feed.mergeFeeds | Merge multiple feeds |
| feed.fetch | Fetch and parse feed from URL |
Examples
Create Atom feed
feed.createAtom {"title": "My Blog", "link": "https://example.com", "items": [...]}Create JSON Feed
feed.createJson {"title": "My Blog", "items": [...]}Parse RSS feed
feed.parseRss $xmlIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/feed";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
feed.createAtom {"title": "My Blog", "link": "https://example.com", "items": [...]}
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
