Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Figured this out myself:

    $ curl 'https://deno.land/std/examples/welcome.ts'
    console.log("Welcome to Deno ");
So this is an Accept header trick. If I do this instead:

    $ curl 'https://deno.land/std/examples/welcome.ts' -H 'Accept: text/html'
I get back the full HTML version of the page.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: