Git Product home page Git Product logo

clash2sing-box's Introduction

δΈ­ζ–‡(zh-cn) | English

Outbound converting Supports

  • Shadowsocks
  • http
  • socks
  • VMess
  • Trojan
  • Hysteria
  • ShadowsocksR
  • VLESS VLESS had been abandoned. Consider use Trojan instead. See detail
  • TUIC sing-box not support tuic yet
  • ShadowTLS Clash.Meta not support Shadow-tls yet

Parse clash subscribe link and generate pretty-printed indented minimal avaliable sing-box profile

./ctos --subscribe "<URL>" -g -f -o ./config.json

Parse clash subscribe link

./ctos --subscribe "<URL>"  

Parse clash config.yaml

./ctos --path <PATH TO config.yaml>  

Converting clash profile to minimal sing-box profile

./ctos --path <PATH TO config.yaml> -g -f -o ./config.json   

Commands

> ./ctos --help
Usage: ctos [OPTIONS]

Options:
  -p, --path <PATH>        Read path of clash format config.yaml file
  -s, --subscribe <URL>    Get clash subscription profile by url
  -f                       Output pretty-printed indented JSON
  -g, --gen-profile        Generate minimal avaliable sing-box JSON profile
  -o, --output <PATH>      Output sing-box JSON profile
  -h, --help               Print help information
  -V, --version            Print version information

Credits

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.