deno: add page (#3894)

client-spec/clarity
Daryl Pinto 2020-03-12 19:33:59 -04:00 committed by GitHub
parent 5c3c2c732c
commit 115b1d292b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
pages/common/deno.md Normal file
View File

@ -0,0 +1,24 @@
# deno
> A secure runtime for JavaScript and TypeScript.
> More information: <https://deno.land/>.
- Run a JavaScript or TypeScript file:
`deno {{path/to/file.ts}}`
- Start a REPL (interactive shell):
`deno`
- Run a file with network access enabled:
`deno --allow-net {{path/to/file.ts}}`
- Run a file from a URL:
`deno {{https://deno.land/std/examples/welcome.ts}}`
- Install an executable script from a URL:
`deno install --allow-net --allow-read {{file_server}} {{https://deno.land/std/http/file_server.ts}}`