clash-config-regenerator
v0.0.8
Published
Regenerate clash config file via subscriptions and rule providers.
Downloads
9
Readme
Clash Config Regenerator
Only generates proxies
, proxy-groups
and rules
, other options should be defined in header.yml
Usage
git clone https://github.com/Biobots/clash-config-regenerator.git
Modify global.yml
, config_sample.yml
and header_sample.yml
. Copy your config file to ./config
folder, rename it to your user name.
yarn install
yarn start
or
npm install
npm start
If your config file under config/
is called a.yml
and your server port is 1111
, then http://localhost:1111/clash/a
should return your config file.
Mutiple users are supported.
Use as a package
Add global.yml
to ./
and use:
let ccr = require('clash-config-regenerator')
ccr.startServ() //start server
ccr.stopServ() //stop server