1.0.0
Downloads files, extracting them when ordered to do so
Repository
Current version released
6 years ago
Versions
downloader
Downloads files, extracting them when ordered to do so
CLI Usage
deno install --unstable --allow-read --allow-write --allow-net --allow-env https://deno.land/x/downloader/cli.tsCreate a config…
{
"$schema": "https://deno.land/x/downloader/schema.json",
"dest": "destination/dir",
"files": [
{
"url": "https://deno.land/x/hackle/mod.ts",
"name": "hackle.ts"
},
{
"url": "https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&dl=clement-h-95YRwf6CNw8-unsplash.jpg",
"name": "code.jpg"
},
{
"url": "https://codeload.github.com/Vehmloewff/custom-format/zip/1.0.1",
"unzip": {
"exclude": "**/*",
"include": "*README*",
"renameArtifacts": {
"README.md": "custom-format-readme.md"
},
"nest": false
}
},
]
}…and download the files:
downloader --config path/to/configProgrammatic Usage
import { downloader, downloadFiles } from 'https://deno.land/x/downloader/mod.ts'
await downloader('path/to/config')
// or
await downloadFiles({
// your config here
})