├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ ├── pkg.yml │ └── update.yml ├── .gitignore ├── LICENSE ├── README.md ├── bin └── hosts-cli.js ├── hosts ├── next-hosts ├── package.json ├── src ├── IpManage │ ├── SpeedTest.ts │ └── index.ts ├── cli.ts ├── constants.ts ├── dns │ ├── base.ts │ ├── choice.ts │ ├── https.ts │ ├── index.ts │ └── ipaddress.ts ├── hosts.ts ├── index.ts ├── log.ts └── utils.ts ├── template.md ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | bin/hosts-cli.js 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/pkg.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/.github/workflows/pkg.yml -------------------------------------------------------------------------------- /.github/workflows/update.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/.github/workflows/update.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | .idea 3 | dist 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/README.md -------------------------------------------------------------------------------- /bin/hosts-cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('../dist/cli'); 4 | -------------------------------------------------------------------------------- /hosts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/hosts -------------------------------------------------------------------------------- /next-hosts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/next-hosts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/package.json -------------------------------------------------------------------------------- /src/IpManage/SpeedTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/IpManage/SpeedTest.ts -------------------------------------------------------------------------------- /src/IpManage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/IpManage/index.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/dns/base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/dns/base.ts -------------------------------------------------------------------------------- /src/dns/choice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/dns/choice.ts -------------------------------------------------------------------------------- /src/dns/https.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/dns/https.ts -------------------------------------------------------------------------------- /src/dns/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/dns/index.ts -------------------------------------------------------------------------------- /src/dns/ipaddress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/dns/ipaddress.ts -------------------------------------------------------------------------------- /src/hosts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/hosts.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/log.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/src/utils.ts -------------------------------------------------------------------------------- /template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/template.md -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ineo6/hosts/HEAD/yarn.lock --------------------------------------------------------------------------------