Socket
Socket
Sign inDemoInstall

rsshub-launcher

Package Overview
Dependencies
418
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rsshub-launcher

Launch rsshub


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

RSSHub launcher

Download external routes to RSSHub before launch

Usage

安装

npm i -g rsshub-launcher

上传配置文件

编写一个配置 Yaml 文件,上传到可以提供 plain text 访问的 HTTPS 服务器上。例如 GitHub Gist。 文件包含包含一个 routes 列表,有两种配置方式

  1. 直接传入 PR 的网址作为 prUrl
  2. 传入路由入口(传入koa-router的文件)url 作为 remoteUrl 和路由挂载的koa-routerpath 作为 routePath。 下面是一个实例:
routes:
  - remoteUrl: "https://raw.githubusercontent.com/zhangxiang012/RSSHub/f89a1beae606c83263fb865c8eee953eed2219a5/lib/routes/kge/user.js"
    routePath: "/kge/:userid"
  - remoteUrl: "https://raw.githubusercontent.com/zhangxiang012/RSSHub/f89a1beae606c83263fb865c8eee953eed2219a5/lib/routes/kge/reply.js"
    routePath: "/kge/reply/:playid"
  - remoteUrl: "https://github.com/hondajojo/RSSHub/raw/1230fad8e74e152729bc0856c0c3459a70e3aa69/lib/routes/xiaoyuzhou/podcast.js"
    routePath: "/xiaoyuzhou/podcast/:id"
  - prUrl: https://github.com/DIYgod/RSSHub/pull/7885

运行

rsshub-launcher 会自动自动下载路由及其依赖文件(暂时不支持 npm 上的外部依赖) 需要将上一步的配置文件 url 传入RSSHUB_LAUNCHER_CONFIG_URL环境变量,然后在RSSHubGit repository 根目录运行rsshub-launcher。也可以通过--root选项指定根目录。 你还可以通过override设置是否覆盖已经存在的文件。

Positionals:
  --root  File Path to RSSHub repository root
                             [字符串] [默认值: "."]

选项:
  --help      显示帮助信息                                                        [布尔]
  --version   显示版本号                                                         [布尔]
  --override  Whether override existed file                    [布尔] [默认值: false]

screenshot

Keywords

FAQs

Last updated on 18 Jul 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc