Deno
A secure runtime for JavaScript and TypeScriptdeno | |
---|---|
rusty_v8 | |
deno_website2 | |
doc_website | |
deno_install |
Install
Using Shell:
curl -fsSL https://deno.land/x/install/install.sh | sh
Or using PowerShell:
iwr https://deno.land/x/install/install.ps1 -useb | iex
Using Homebrew (macOS or Linux):
brew install deno
Using Chocolatey (Windows):
choco install deno
See deno_install for more installation options.
Example
Try running a simple program:
deno run https://deno.land/std/examples/welcome.ts
Or a more complex one:
import { serve } from "https://deno.land/std@0.50.0/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}
Dig in...
Modules: