Skip to content
/ deno Public
forked from DavidDeSimone/deno

A secure JavaScript and TypeScript runtime

License

Notifications You must be signed in to change notification settings

emacs-ng/deno

This branch is 759 commits behind DavidDeSimone/deno:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ffffa2f · Sep 11, 2022
Aug 26, 2022
Sep 3, 2022
Aug 19, 2022
Sep 9, 2022
Sep 10, 2022
Sep 10, 2022
Jul 20, 2021
Sep 11, 2022
Sep 11, 2022
Sep 9, 2022
Sep 9, 2022
Sep 7, 2022
Sep 7, 2022
Jul 12, 2022
Sep 7, 2022
Oct 30, 2021
Sep 7, 2022
Feb 7, 2019
Nov 15, 2021
Jun 28, 2022
Sep 7, 2022
Jan 8, 2022
Jun 9, 2020
Sep 9, 2022
Aug 18, 2022
Jan 8, 2022
Aug 15, 2022
Sep 9, 2022
Jul 18, 2022
Aug 21, 2022

Repository files navigation

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):

irm https://deno.land/install.ps1 | 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.

About

A secure JavaScript and TypeScript runtime

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 59.5%
  • JavaScript 28.1%
  • TypeScript 12.4%