MCPcopy Create free account
hub / github.com/DIYgod/RSSHub / init

Function init

lib/pkg.ts:21–31  ·  view source on GitHub ↗
(conf?: ConfigEnv)

Source from the content-addressed store, hash-verified

19}
20
21export async function init(conf?: ConfigEnv) {
22 setConfig(
23 Object.assign(
24 {
25 IS_PACKAGE: true,
26 },
27 conf
28 )
29 );
30 app = (await import('@/app')).default;
31}
32
33export async function request(path: RoutePath | (string & {})) {
34 ensureAppInitialized(app);

Callers 1

pkg.test.tsFile · 0.70

Calls 1

setConfigFunction · 0.90

Tested by

no test coverage detected