Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dangarfield/serve-clone
Clone files hosted on a vercel serve server to your local machine
https://github.com/dangarfield/serve-clone
Last synced: about 7 hours ago
JSON representation
Clone files hosted on a vercel serve server to your local machine
- Host: GitHub
- URL: https://github.com/dangarfield/serve-clone
- Owner: dangarfield
- Created: 2020-06-16T14:47:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T15:00:32.000Z (over 4 years ago)
- Last Synced: 2024-04-25T06:01:59.434Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serve-clone
> Clone files hosted on a vercel `serve` server to your local machine![alt text](https://i.ibb.co/wYJMLQH/render1592318697343-min.gif "Serve-clone")
## Usage
Install as a global module:
```bash
npm i -g serve-clone
```Point towards your `serve` server and enter your local path for the cloning:
```bash
serve-clone --url http://localhost:5000 --folder files/just-here
```This will download all the files to your machine and give you a live progress update
## Arguments:
--help Show the help message
-u, --url The url of the serve server
-f, --folder The folder where the serve directory contents will be cloned## Notes
In order for single file directories and automatic .html pages to be listed correctly,
Your `serve` config must be set to `{"cleanUrls": false}`. At the current time, this options has to be set using a config files as CLI argument is not available (`serve@11`).In order for symlinked files to be downloaded correctly,
Your `serve` config must be set to `{"symlinks": true}`. At the current time, this has to be through the CLI arg `--symlinks` as there is a bug through config file usage (`serve@11`).