Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, the original creator of Node.js, and is focused on security and productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js

Deno is a program for running JavaScript and TypeScript code outside of a browser.

Getting started with Deno

Install Deno

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" });
}

Home: https://deno.land/
Github: https://github.com/ry/deno

#deno #rust #javascript #typescript #node.js

What is Deno? Why Deno better than Node.js?
201.30 GEEK