https://github.com/lovetingyuan/hosit
更新最新的google hosts文件,基于https://github.com/racaljk/hosts
https://github.com/lovetingyuan/hosit
fq google host hosts hostsfile
Last synced: about 1 month ago
JSON representation
更新最新的google hosts文件,基于https://github.com/racaljk/hosts
- Host: GitHub
- URL: https://github.com/lovetingyuan/hosit
- Owner: lovetingyuan
- License: mit
- Created: 2017-03-08T01:44:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T01:36:52.000Z (over 7 years ago)
- Last Synced: 2025-04-11T10:43:16.200Z (2 months ago)
- Topics: fq, google, host, hosts, hostsfile
- Language: JavaScript
- Size: 49.8 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## hosit
[](https://www.npmjs.com/package/hosit)
[](https://david-dm.org/lovetingyuan/hosit)>更新最新的google hosts文件,基于[racaljk/hosts](https://github.com/racaljk/hosts),详情请查看[license](https://github.com/googlehosts/hosts/blob/master/LICENSE)
>This work is licensed under a [CC BY-NC-SA 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
支持Linux, Windows及OS X 10.2+
### install
`npm install -g hosit`### usage
* `hosit` 更新最新的`google hosts`文件
* `hosit -h` print help info, `hosit -V` print current version(please use the latest version)
* `hosit -r, --reset` 完全清除hosts的内容(会保留`localhost`,*不建议使用*)
* `hosit -c, --clear` 去除`google hosts`部分的内容
* `hosit -a, --add ` 添加一项记录
* `hosit -d, --delete ` 删除一项记录
* `hosit -p, --path` 打印出hosts文件的路径
* `hosit -P, --print` 打印出hosts文件的内容
* `hosit -e, --edit` 编辑hosts文件### license
MIT