Deno
A secure runtime for JavaScript and TypeScript| deno | |
|---|---|
| rusty_v8 | |
| deno_website2 | |
| doc_website | |
| deno_install |
Install
Using Shell:
curl -fsSL https://deno.land/x/install/install.sh | shOr using PowerShell:
iwr https://deno.land/x/install/install.ps1 -useb | iexUsing Homebrew (macOS or Linux):
brew install denoUsing Chocolatey (Windows):
choco install denoSee deno_install for more installation options.
Example
Try running a simple program:
deno run https://deno.land/std/examples/welcome.tsOr 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: