1.0.5 • Published 8 years ago

openlist v1.0.5

Weekly downloads
12
License
GPL-3.0
Repository
github
Last release
8 years ago

version license downloads Maintenance

An autoproxy pac builder for mainland China.

Install globally:

npm install -g openlist
openlist --help
# Usage: openlist [options]
#
# Options:
#
#   -h, --help           output usage information
#   -V, --version        output the version number
#   -y, --match <proxy>  proxy for matched url
#   -n, --miss <proxy>   proxy for missed url
#   -r, --rule <path>    source file path
#   -o, --output <path>  output target file path
#
# Default options:
#   openlist -r rules/openlist.txt \
#            -o openlist.pac \
#            -y 'SOCKS5 127.0.0.1:1080; PROXY 192.168.1.1:8123; DIRECT;' \
#            -n 'DIRECT'

Common use cases:

use the built-in list which covers most common websites:

openlist # will generate a openlist.pac file

or use the gfwlist which is more extensive:

openlist -r <(curl https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt | base64 -d) # convert gfwlist to autoproxy pac file

Or use as a nodejs module:

var openlist = require('openlist') // built-in list is installed by default
openlist.match('https://www.google.com/ncr') // true

openlist.clear() // unset all preset rules
openlist.match('https://twitter.com/') // false

openlist.add('||twitter.com')
openlist.match('https://twitter.com/') // true
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago