# download

Download a file from URL and auto-extract archives (.tar.gz, .zip, etc).

```rhai
download(url: &str, dest: &str, min_size_kb: i64) -> String
```

## Examples

```rhai
// Download and extract Go
download("https://go.dev/dl/go1.25.5.linux-amd64.tar.gz", "/tmp", 40000);
// After extraction, Go is at /tmp/go
mv("/tmp/go", "/usr/local/go")?;
```

```rhai
// Download with size validation (40MB minimum)
download("https://example.com/app.tar.gz", "/opt", 40000);
```
