Socket
Socket
Sign inDemoInstall

openlist

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    openlist

An autoproxy pac builder for mainland China


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 09 Jun 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc