UNPKG

set-hosts-file

Version:

这是一个配置hosts文件的脚本,如果你用的macOs 或者 Linux, hosts文件默认在 `/etc/hosts`. window默认在 `C:/Windows/System32/drivers/etc/hosts`.

15 lines (10 loc) 340 B
## 介绍 这是一个配置hosts文件的脚本,如果你用的macOs 或者 Linux, hosts文件默认在 `/etc/hosts`. window默认在 `C:/Windows/System32/drivers/etc/hosts`. ## 安装 ```bash npm install set-hosts-file ``` ## 使用 ```bash npx hkhostile set localhost domain.com npx hkhostile set 127.0.0.1 domain.com