百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

feed

> 编程语言
开源

一个用于 Node.js 的 RSS、Atom 和 JSON 订阅源生成器,使内容的合并分发变得简单而直观!

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于 Node.js 的 RSS、Atom 和 JSON 订阅源生成器,使内容的合并分发变得简单而直观!


jpmonette/feed - RSS 2.0, JSON Feed 1.0, and Atom 1.0 generator for Node.js
Making content syndication simple and intuitive!


‍ Developer Ready: Quickly generate syndication feeds for your Website.

** Strongly Typed**: Developed using TypeScript / type-safe.

** Tested**: Tests & snapshot for each syndication format to avoid regressions.

Getting Started

Installation

bash
$ pnpm add feed

Example

…

Options

Feed Options

Property Type Description
title string Required. Feed title
id string Feed identifier (required for Atom)
link string URL to the feed's website
description string Feed description/subtitle
copyright string Copyright notice
language string Language code (e.g., "en", "fr-CA")
updated Date Last update date (default: now)
generator string Generator name (default: "https://github.com/jpmonette/feed")
image string URL to feed image/logo
favicon string URL to feed favicon
author Author Feed author
feedLinks object Links to feed formats ({ rss, atom, json })
feed string Self-referencing feed URL
hub string WebSub/PubSubHubbub hub URL
ttl number Time to live in minutes (RSS)
docs string RSS specification docs URL
stylesheet string URL to XSL stylesheet
podcast boolean Enable iTunes/Google podcast extensions
category string Podcast category name

Item Options

Property Type Description
title string Required. Item title
link string Required. URL to the item
date Date Required. Last modified/updated date
id string Unique identifier (Atom/JSON)
guid string RSS-specific GUID
description string Brief summary or excerpt
content string Full content (HTML allowed)
author Author[] Item authors
contributor Author[] Item contributors
category Category[] Item categories
published Date Original publication date
copyright string Item copyright notice
image string | Enclosure Image attachment
audio string | Enclosure Audio attachment
video string | Enclosure Video attachment
enclosure Enclosure Generic media enclosure
extensions Extension[] Custom extensions

Types

typescript
interface Author {
  name?: string;
  email?: string;
  link?: string;
  avatar?: string; // JSON Feed only
}

interface Enclosure {
  url: string;
  type?: string; // MIME type (e.g., "audio/mpeg")
  length?: number; // File size in bytes
  title?: string;
  duration?: number; // Duration in seconds (for podcasts)
}

interface Category {
  name?: string;
  domain?: string; // RSS
  scheme?: string; // Atom
  term?: string; // Atom
}

interface Extension {
  name: string;
  objects: Record<string, unknown>;
}

Migrating from < 3.0.0

If you are migrating from a version older than 3.0.0, be sure to update your import as we migrated to ES6 named imports.

If your environment supports the ES6 module syntax, you can import as described above:

typescript
import { Feed } from "feed";

Otherwise, you can stick with require():

diff
- const Feed = require('feed');
+ const Feed = require('feed').Feed;

Star History

More Information

  • Follow @jpmonette on Twitter for updates
  • Read my personal blog Blogue de Jean-Philippe Monette to learn more about what I do!

License

Copyright (C) 2013, Jean-Philippe Monette [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptatomfeedjavascriptjson-feed

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言