From ea7a3d752c2b3d4f20a4ba91d365107d23452ac7 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 31 Aug 2024 19:31:40 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20demo.js=20=E5=A2=9E=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E5=AD=97=E6=AE=B5=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/demo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/demo.js b/scripts/demo.js index 3223ce3..ff266ae 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -3,6 +3,8 @@ function operator(proxies = [], targetPlatform, context) { // 可参考 https://t.me/zhetengsha/970 // https://t.me/zhetengsha/1009 + // require 为 Node.js 的 require, 在 Node.js 运行环境下 可以用来引入模块 + // proxies 为传入的内部节点数组 // 可在预览界面点击节点查看 JSON 结构 或查看 `target=JSON` 的通用订阅 // 0. 结构大致参考了 Clash.Meta(mihomo), 可参考 mihomo 的文档, 例如 `xudp`, `smux` 都可以自己设置. 但是有私货, 下面是我能想起来的一些私货