From 115b1d292bde27135946c421f9ec071a8fb2b662 Mon Sep 17 00:00:00 2001 From: Daryl Pinto Date: Thu, 12 Mar 2020 19:33:59 -0400 Subject: [PATCH] deno: add page (#3894) --- pages/common/deno.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/deno.md diff --git a/pages/common/deno.md b/pages/common/deno.md new file mode 100644 index 000000000..654165869 --- /dev/null +++ b/pages/common/deno.md @@ -0,0 +1,24 @@ +# deno + +> A secure runtime for JavaScript and TypeScript. +> More information: . + +- 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}}`