0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
2025-02-24 17:33:01 +00:00
.cargo
.devcontainer
.github chore: forward v2.2.1 release commit to main (#28213) 2025-02-21 01:35:34 +00:00
bench_util chore: forward v2.2.1 release commit to main (#28213) 2025-02-21 01:35:34 +00:00
cli fix(config): allow specifying absolute path for patch and fix panic with exports in package.json (#28279) 2025-02-24 17:33:01 +00:00
ext fix(ext/node): descriptive sqlite error messages (#28272) 2025-02-24 17:55:36 +05:30
resolvers fix(config): allow specifying absolute path for patch and fix panic with exports in package.json (#28279) 2025-02-24 17:33:01 +00:00
runtime fix: add info suggestion for unsafely-ignore-certificate-errors and add --help=full (#28203) 2025-02-24 08:20:59 -08:00
tests fix(lint): give access to SourceCode in 'deno test' (#28278) 2025-02-24 17:21:16 +01:00
tools
.dlint.json
.dprint.json
.editorconfig
.gitattributes
.gitignore
.gitmodules
.rustfmt.toml
Cargo.lock fix(config): allow specifying absolute path for patch and fix panic with exports in package.json (#28279) 2025-02-24 17:33:01 +00:00
Cargo.toml fix(config): allow specifying absolute path for patch and fix panic with exports in package.json (#28279) 2025-02-24 17:33:01 +00:00
import_map.json
LICENSE.md
README.md
Releases.md chore: forward v2.2.1 release commit to main (#28213) 2025-02-21 01:35:34 +00:00
rust-toolchain.toml

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

WinGet (Windows):

winget install --id=DenoLand.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.