Code Monkey home page Code Monkey logo

chalkpac's Introduction

chalkPAC

NPM IMAGE

chalkPAC is a PAC(Proxy Auto Config) file generator

Usage

  1. Install Node.js

  2. Install chalkPAC and get into its directory with

     npm install chalk-pac
     cd node_modules/chalkPAC
    

    or

     git clone https://github.com/SEIAROTg/chalkPAC.git
     cd chalkPAC
    
  3. Edit config.json

  4. Run chalkPAC with

     node main
    
  5. proxy.pac is now generated

Configuration

chalkPAC configuration is stored in config.json like the following:

{
	"proxy": {
		"direct": "DIRECT",
		"socks5": "SOCKS5 127.0.0.1:1080"
	},
	"route": {
		"special": "direct",
		"CN": "direct",
		"default": "socks5"
	}
}

This example configuration

proxy

proxy defines a list of PAC proxy with key & value

the key is proxy name

the value is PAC proxy string

route

route defines a list of proxy rule with key & value

the key can be "special", "default" or region code

the value is a proxy name defined in proxy

"special"

"special" stands for special use IP addresses (RFC 5375)

"default"

If no route is matched, this will be used

It's necessary

region code

A region code stands for its IP Address

Note

  • Only Asia Pacific regions are supported currently

chalkpac's People

Contributors

seiarotg avatar

Watchers

James Cloos avatar  avatar

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.