Deno: Proposal: Subcommand to "cat" a remote file

Created on 25 Mar 2020  路  3Comments  路  Source: denoland/deno

Often I want to see the source of a URL import - unless I'm mistaken, there's no easy way aside from "curl"ing the URL to see the source? If so, I think a deno cat or something similar would be very handy. Maybe a way to navigate the cached dependency tree?

Most helpful comment

There is an example deno script in std:

deno --allow-net https://deno.land/std/examples/curl.ts URL

You could install/alias this on your machine. (Or you could just use curl as kitson mentions.)


I don't think deno is, or should be, in the business of making every unix tool a subcommand.

All 3 comments

Why would something like this not be sufficient:

curl https://deno.land/x/foo/bar.ts

I guess why do you need Deno in the way?

There is an example deno script in std:

deno --allow-net https://deno.land/std/examples/curl.ts URL

You could install/alias this on your machine. (Or you could just use curl as kitson mentions.)


I don't think deno is, or should be, in the business of making every unix tool a subcommand.

Why would something like this not be sufficient:

curl https://deno.land/x/foo/bar.ts

I guess why do you need Deno in the way?

For some reason I thought I'd need some flags. Yeah, you're right.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  3Comments

ry picture ry  路  3Comments

doutchnugget picture doutchnugget  路  3Comments

sh7dm picture sh7dm  路  3Comments

somombo picture somombo  路  3Comments