A modern runtime for JavaScript and TypeScript.
Find a file
2022-07-20 10:36:14 -04:00
.cargo chore: rename .cargo/config to .cargo/config.toml (#14959) 2022-06-27 10:01:20 -06:00
.devcontainer
.github chore: update deno automation to 0.12 (#15248) 2022-07-19 16:35:58 -04:00
bench_util chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
cli fix(task): resolve deno configuration file first from specified --cwd arg (#15257) 2022-07-20 10:36:14 -04:00
core chore: upgrade rusty_v8 to 0.47.0 (#15247) 2022-07-19 21:36:15 +02:00
docs
ext chore: align some Web API type definitions to lib.dom.d.ts (#15219) 2022-07-20 18:30:41 +08:00
ops chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
runtime feat(unstable): Ability to ref/unref "Child" in "Deno.spawnChild()" API (#15151) 2022-07-18 22:24:35 +02:00
serde_v8 chore: upgrade rusty_v8 to 0.47.0 (#15247) 2022-07-19 21:36:15 +02:00
test_ffi feat(ext/ffi): Support 64 bit parameters in Fast API calls (#15140) 2022-07-12 08:20:20 +05:30
test_util BREAKING(unstable): Improve Deno.spawn() stdio API (#14919) 2022-07-18 15:16:12 +02:00
third_party@9f314cefb5 fix(ext/ffi): trampoline for fast calls (#15139) 2022-07-12 06:33:05 +05:30
tools chore(ext): update webgpu (#15059) 2022-07-20 02:22:26 +02:00
.dlint.json
.dprint.json feat(fmt): do not add a newline between a template and its tag (#15195) 2022-07-13 17:27:27 -04:00
.editorconfig
.gitattributes
.gitignore refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30
.gitmodules fix(ext/ffi): trampoline for fast calls (#15139) 2022-07-12 06:33:05 +05:30
.rustfmt.toml
Cargo.lock fix(fmt): improve curried arrow functions (#15251) 2022-07-20 08:55:18 -04:00
Cargo.toml Revert "refactor(snapshots): to their own crate (#14794)" (#15076) 2022-07-05 00:12:41 +02:00
CODE_OF_CONDUCT.md
LICENSE.md
README.md
Releases.md chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
rust-toolchain.toml chore: use Rust 1.62.0 (#15028) 2022-07-01 15:28:06 +02:00
SECURITY.md chore: change e-mail address for security issues (#15239) 2022-07-18 16:55:05 -07:00

Deno

Build Status - Cirrus Twitter handle Discord Chat

the deno mascot dinosaur standing in the rain

Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

Features

  • Secure by default. No file, network, or environment access, unless explicitly enabled.
  • Supports TypeScript out of the box.
  • Ships only a single executable file.
  • Built-in utilities.
  • Set of reviewed standard modules that are guaranteed to work with Deno.

Install

Shell (Mac, Linux):

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

PowerShell (Windows):

iwr https://deno.land/install.ps1 -useb | iex

Homebrew (Mac):

brew install deno

Chocolatey (Windows):

choco install deno

Scoop (Windows):

scoop install deno

Build and install from source using Cargo:

cargo install deno --locked

See deno_install and releases for other options.

Getting Started

Try running a simple program:

deno run https://deno.land/std/examples/welcome.ts

Or a more complex one:

const listener = Deno.listen({ port: 8000 });
console.log("http://localhost:8000/");

for await (const conn of listener) {
  serve(conn);
}

async function serve(conn: Deno.Conn) {
  for await (const { respondWith } of Deno.serveHttp(conn)) {
    respondWith(new Response("Hello world"));
  }
}

You can find a deeper introduction, examples, and environment setup guides in the manual.

The complete API reference is available at the runtime documentation.

Contributing

We appreciate your help!

To contribute, please read our contributing instructions.