Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xkyong/easy-file-transfer
A tool which can transfer files between pc and mobile device.
https://github.com/xkyong/easy-file-transfer
file-transfer http-server koa
Last synced: 2 months ago
JSON representation
A tool which can transfer files between pc and mobile device.
- Host: GitHub
- URL: https://github.com/xkyong/easy-file-transfer
- Owner: xkyong
- Created: 2024-06-15T13:29:43.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T14:28:45.000Z (4 months ago)
- Last Synced: 2024-10-01T02:04:24.971Z (3 months ago)
- Topics: file-transfer, http-server, koa
- Language: HTML
- Homepage:
- Size: 1.85 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy-File-Transfer
> 使用前提:pc 端和移动端在同一个局域网下!
一个用来在 pc 端和移动端之间**极速传输**文件的工具。
## 依赖安装
通过以下命令安装依赖:
```bash
$ pnpm install
```## pc 端 -> 移动端
将需要传输的文件放到 `static` 文件夹下,然后在项目根目录下输入以下命令:
```bash
$ pnpm run pc2m
```之后,移动端浏览器访问 `http-server` 启动的服务,一般选择第一个:
![截图_20240615212047](img/README/截图_20240615212047.png)
然后在页面中点击要传输的文件,即可将文件下载到移动端本地:
## 移动端 -> pc 端
项目根目录下输入以下命令启动上传页面入口:
```bash
$ pnpm run m2pc
```![截图_20240615212140](img/README/截图_20240615212140.png)
通过启动服务的 url 访问可以看到:
然后通过 file 表单项选择文件并上传(支持多选),上传成功的文件会放在 `uploads` 文件夹中:
## pc端 <-> 移动端
如果想同时启动双向传输通道,在项目根目录下输入以下命令即可:
```bash
$ pnpm run bootstrap
```此时控制台会看到:
![截图_20240615213335](img/README/截图_20240615213335.png)