deno README

The project's README from github.com/denoland/deno. As one markdown file: README.md.

Deno

Twitter badge Bluesky 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

Scoop (Windows):

scoop install main/deno

Build and install from source

Complete instructions for building Deno from source can be found 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.

deno (denoland/deno)

Searching Database…

108.7K ·GitHub
What is this?Deno is a runtime for JavaScript, TypeScript, and WebAssembly that focuses on secure defaults and good developer experience. It's built on V8, Rust, and Tokio.
Is this a library I import, or a standalone program I install?It's a standalone runtime binary, similar to Node.js, that you install on your machine and use to execute .ts or .js files directly without a build step.
How do I install it and run my first program?Install via a shell script (Mac/Linux), PowerShell (Windows), or a package manager like Homebrew, Chocolatey, WinGet, or Scoop. Then write TypeScript code in a file like server.ts and run it directly with the deno command.
Do I need Node.js or any extra tooling first?No, Deno ships as a single self-contained binary and runs TypeScript natively without Node.js, npm, or a separate build/transpile step.
Any gotchas when building it from source instead of installing a binary?Building from source is possible but is a separate, more involved path than just downloading the installer; the README points to dedicated instructions for it rather than covering it in detail.
What's it typically used for?It's most commonly used to build web servers, though it can run general JavaScript/TypeScript/WebAssembly applications.
What package registry does Deno use?Deno points to JSR, described as the open-source package registry for modern JavaScript and TypeScript, alongside its own Standard Library of common utilities.
Where can I deploy a Deno app besides my own machine?Deno Deploy is mentioned as part of the official docs ecosystem for hosting Deno programs, alongside the runtime itself.
What's the security angle the README mentions?Deno is described as having 'secure defaults', implying permissions are restricted unless explicitly granted, though exact flag details aren't covered in this README excerpt.
What language is Deno itself written in?Deno's engine is built on V8, Rust, and Tokio, making Rust the core implementation language of the runtime.
What are similar projects?wasmer, pdfcraft, zx, sdk-js, liteparse, genact, rollup, scriptc
Creator
denoland
Size
247.5 MB
Stars
108.7K
Age
8y
Commits · 90 Days