mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:33:38 +02:00
deno: add page (#3894)
This commit is contained in:
parent
5c3c2c732c
commit
115b1d292b
1 changed files with 24 additions and 0 deletions
24
pages/common/deno.md
Normal file
24
pages/common/deno.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue