/downloader

Easy way to download files via Crystal.

Primary LanguageCrystalMIT LicenseMIT

downloader

GitHub release

Easy way to download files via Crystal.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      downloader:
        github: crystal-libs/downloader
  2. 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

  1. Fork it (https://github.com/crystal-libs/downloader)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • gxfr - creator and maintainer