A modern runtime for JavaScript and TypeScript.
Go to file
2024-08-14 23:52:19 +08:00
.cargo
.devcontainer
.github chore: upgrade dependencies (#24565) 2024-07-15 09:56:51 -07:00
bench_util chore: forward v1.45.2 release commit to main (#24564) 2024-07-12 18:05:45 -04:00
cli cherry-pick deno#24983 2024-08-14 22:46:15 +08:00
ext fix: cache negative package.json lookups 2024-08-14 23:52:19 +08:00
runtime feat(runtime): send console output to OpenTelemetry collector (#3) 2024-08-09 15:00:56 -07:00
tests cherry-pick deno#24983 2024-08-14 22:46:15 +08:00
tools chore: include current versions more in release checklist (#24562) 2024-07-12 18:44:55 -04:00
.dlint.json
.dprint.json chore: format yaml internally (#24520) 2024-07-10 23:59:57 -04:00
.editorconfig
.gitattributes
.gitignore
.gitmodules chore: make remaining submodules shallow (#23441) 2024-04-18 19:45:09 +00:00
.rustfmt.toml
Cargo.lock cherry-pick deno#24983 2024-08-14 22:46:15 +08:00
Cargo.toml cherry-pick deno#24983 2024-08-14 22:46:15 +08:00
LICENSE.md
README.md
Releases.md chore: forward v1.45.2 release commit to main (#24564) 2024-07-12 18:05:45 -04:00
rust-toolchain.toml chore: upgrade to rust 1.79 (#24207) 2024-06-14 17:10:57 +05:30

Deno

Twitter badge Discord badge YouTube badge

the deno mascot dinosaur standing in the rain

Deno (/ˈdiːnoʊ/, pronounced dee-no) is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults and a great developer experience. It's built on V8, Rust, and Tokio.

Learn more about the Deno runtime in the documentation.

Installation

Install the Deno runtime on your system using one of the commands below. Note that there are a number of ways to install Deno - a comprehensive list of installation options can be found here.

Shell (Mac, Linux):

curl -fsSL https://deno.land/install.sh | sh

PowerShell (Windows):

irm https://deno.land/install.ps1 | iex

Homebrew (Mac):

brew install deno

Chocolatey (Windows):

choco install deno

Build and install from source

Complete instructions for building Deno from source can be found in the manual here.

Your first Deno program

Deno can be used for many different applications, but is most commonly used to build web servers. Create a file called server.ts and include the following TypeScript code:

Deno.serve((_req: Request) => {
  return new Response("Hello, world!");
});

Run your server with the following command:

deno run --allow-net server.ts

This should start a local web server on http://localhost:8000.

Learn more about writing and running Deno programs in the docs.

Additional resources

Contributing

We appreciate your help! To contribute, please read our contributing instructions.