0.2.6 • Published 7 years ago

update-hosts v0.2.6

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

用于自动下载并替换windows的hosts文件

安装

npm i update-hosts -g

up-hosts

参数

-g # 从github的源下载
-c # 从coding的源下载

如果提示权限不足,请在管理员命令行下执行此程序 默认从github的源下载,更新很快但下载容易失败,国内的coding很快但作者的同步较慢

历史

  • v 0.1.4 修正powsershell默认打开hosts文件导致命令冲突,修正为 up-hosts
  • v 0.2.4 增加权限错误提示,增加ANSI Color,增加显示Hosts文件修改信息
  • v 0.2.6 增加参数设置,能够从coding镜像或者github下载 默认为github

版权

本工具只做简单的下载及搬运替换功能,所有版权或协议遵守原项目

感谢 hosts原作者 @googlehosts

项目原地址 https://github.com/googlehosts/hosts

hosts 源地址 https://coding.net/u/scaffrey/p/hosts/git/blob/master/hosts-files/hosts

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago