Socket
Book a DemoInstallSign in
Socket

update-hosts

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-hosts

自动更新翻墙hosts,必须在管理员权限下运行

0.2.6
latest
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

用于自动下载并替换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

Keywords

hosts

FAQs

Package last updated on 06 Oct 2017

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.