Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melkir/fetch-cli
Command line program that allows you to download web pages and save them to disk for later viewing.
https://github.com/melkir/fetch-cli
Last synced: 2 days ago
JSON representation
Command line program that allows you to download web pages and save them to disk for later viewing.
- Host: GitHub
- URL: https://github.com/melkir/fetch-cli
- Owner: melkir
- License: mit
- Created: 2023-02-08T16:41:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:35:55.000Z (about 1 year ago)
- Last Synced: 2023-12-15T18:47:19.162Z (about 1 year ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fetch CLI
Command line program that allows you to download web pages and save them to disk for later viewing.
## Installation
https://deno.land/#installation
## Getting started
### Using Deno
The program can be run using
```sh
deno run --allow-net --allow-write main.ts [options...]
```For example
```sh
deno run --allow-net --allow-write main.ts --metadata https://www.google.com
```The downloaded file will be in the current directory, the one from which you launched the command.
### Using Docker
Alternatively, you can build an Docker image from the program and run it in a container:
```sh
docker build -t fetch .
```And then you can run a container from this image with the following command:
```sh
docker run -v $(pwd):/app fetch [options...]
```## Deployment
If you wish to compile the script into a self-contained executable:
```sh
./build.sh
```## Improvements
- [x] Create a Dockerfile
- [ ] Setup Github Actions for running tests
- [ ] Setup Github Actions for publishing releases (e.g. [cargo_publish](https://github.com/denoland/deno/blob/main/.github/workflows/cargo_publish.yml))