mirror of https://github.com/denoland/deno.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
3 hours ago | |
---|---|---|
.cargo | 3 months ago | |
.devcontainer | 7 months ago | |
.github | 5 days ago | |
bench_util | 5 hours ago | |
cli | 3 hours ago | |
core | 5 hours ago | |
ext | 5 hours ago | |
lockfile | 6 days ago | |
ops | 3 days ago | |
runtime | 5 hours ago | |
serde_v8 | 5 days ago | |
test_ffi | 2 weeks ago | |
test_napi | 1 month ago | |
test_util | 5 days ago | |
third_party@17882602ab | 3 days ago | |
tools | 11 hours ago | |
.dlint.json | 2 months ago | |
.dprint.json | 6 hours ago | |
.editorconfig | 4 years ago | |
.gitattributes | 1 year ago | |
.gitignore | 2 weeks ago | |
.gitmodules | 7 months ago | |
.rustfmt.toml | 3 months ago | |
Cargo.lock | 8 hours ago | |
Cargo.toml | 8 hours ago | |
LICENSE.md | 3 months ago | |
README.md | 7 months ago | |
Releases.md | 6 days ago | |
rust-toolchain.toml | 2 weeks ago |
README.md
Deno
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.