downloader
January 20, 2022 ยท View on GitHub
Easy way to download files via Crystal.
Installation
-
Add the dependency to your
shard.yml:dependencies: downloader: github: crystal-libs/downloader -
Run
shards install
Usage
require "downloader"
Download a file:
url = "https://avatars.githubusercontent.com/u/88042940?v=4"
filename = "avatar.png"
Downloader.download(url, filename)
Contributing
- Fork it (https://github.com/crystal-libs/downloader)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- gxfr - creator and maintainer