The advantage of printing to stderr is that you can use $() (which does not capture stderr) to resolve the allow run path ahead and ensure your actual script only execute with limited permissions:
deno run --allow-run=$(deno eval 'console.log(await import("jsr:@astral/astral").then(_ => _.getBinary("chrome")))') mod.ts
I've already opened an upstream issue about the progress bar lib used (https://github.com/deno-library/progress/issues/30)
The advantage of printing to stderr is that you can use
$()
(which does not capture stderr) to resolve the allow run path ahead and ensure your actual script only execute with limited permissions:Some other linux command also do this, like
wget
: