https://github.com/rmlzy/fast-hosts
一键加速 Figma、Github
https://github.com/rmlzy/fast-hosts
Last synced: 3 months ago
JSON representation
一键加速 Figma、Github
- Host: GitHub
- URL: https://github.com/rmlzy/fast-hosts
- Owner: rmlzy
- License: mit
- Created: 2021-09-06T09:12:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T06:46:51.000Z (over 3 years ago)
- Last Synced: 2024-03-29T13:21:25.204Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://npmjs.com/fast-hosts
- Size: 423 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
此工具用于自动寻找访问速度最快的 IP,并写入系统的 hosts 文件中。
## 安装
```bash
$ npm i -g fast-hosts# or
$ yarn global add fast-hosts
```## 预览
## 如何使用
由于要操作 `/etc/hosts` 文件, 所以需要 sudo 权限
```bash
# 一键加速 Github
$ sudo fast github# 一键加速 Figma
$ sudo fast figma
``````bash
# 清空 Github 配置
$ sudo fast clear github# 清空 Figma 配置
$ sudo fast clear figma
```核心代码来自 [Figma-Net-OK](https://github.com/Moonvy/Figma-Net-OK)
## License
MIT