Skip to content

lovetingyuan/hosit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hosit

Version depend

更新最新的google hosts文件,基于racaljk/hosts,详情请查看license

This work is licensed under a CC BY-NC-SA 4.0 International License.

支持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 <ip> <domain> 添加一项记录
  • hosit -d, --delete <ip|domain> 删除一项记录
  • hosit -p, --path 打印出hosts文件的路径
  • hosit -P, --print 打印出hosts文件的内容
  • hosit -e, --edit 编辑hosts文件

license

MIT

Releases

No releases published

Packages

No packages published