For the next decade of JavaScript
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Rewrite tools/ in deno (#1528) Jan 17, 2019
build @ 1e3840b build: write a gcc-style depfile when using clang-cl (#1525) Jan 15, 2019
build_extra Update to rust 2018 edition Jan 14, 2019
js mkdir should not be recursive by default (#1530) Jan 18, 2019
libdeno Avoid crashes on ES module resolution when module not found (#1546) Jan 18, 2019
prebuilt Update sccache.exe (fixes #1526) (#1529) Jan 15, 2019
src Avoid crashes on ES module resolution when module not found (#1546) Jan 18, 2019
tests Avoid crashes on ES module resolution when module not found (#1546) Jan 18, 2019
third_party @ 2e41cca third_party: upgrade rust crates, now with `--edition 2018` support Jan 14, 2019
tools Rewrite tools/ in deno (#1528) Jan 17, 2019
website website: fix link to http_bench.ts (#1522) Jan 15, 2019
.appveyor.yml ci: work around appveyor cache bug Jan 17, 2019
.gitattributes Add LSAN build to travis. Dec 3, 2018
.gitignore travis: Set CARGO_HOME to third_party/rust_crates (#1370) Dec 19, 2018
.gitmodules deno_net -> deno_std rename Dec 24, 2018
.gn Revert "Remove symbol_level=1 override (#1532)" Jan 17, 2019
.prettierignore Pipe new exception info through into JSError Jan 12, 2019
.prettierrc.json tools/format: format markdown files with prettier Oct 4, 2018
.travis.yml Rewrite tools/ in deno (#1528) Jan 17, 2019 build: winapi is a windows-only dep Jan 14, 2019
Cargo.lock v0.2.7 Jan 15, 2019
Cargo.toml v0.2.7 Jan 15, 2019 Rewrite tools/ in deno (#1528) Jan 17, 2019
LICENSE Happy new year! Jan 2, 2019 Add some links to website Jan 10, 2019 v0.2.7 Jan 15, 2019 Add Oct 20, 2018 cargo build: skip if possible Dec 20, 2018
build_overrides move v8 to third_party/v8 (#322) Jul 3, 2018
buildtools move v8 to third_party/v8 (#322) Jul 3, 2018 Upgrade V8 to 7.2.502.16 (#1403) Dec 23, 2018
node_modules chore: reorganize symlinks Jul 6, 2018
package.json Process source maps in Rust instead of JS (#1280) Dec 7, 2018
rollup.config.js Omit sources from source maps in bundle. Nov 5, 2018
testing move v8 to third_party/v8 (#322) Jul 3, 2018
tsconfig.json build: Use target/ instead of out/ (#1153) Nov 8, 2018
tslint.json tslint: no-unused-variable is deprecated. Oct 4, 2018


Linux & Mac Windows

A secure JavaScript / TypeScript runtime built on V8

  • Supports TypeScript out of the box. Uses a recent version of V8. That is, it's very modern JavaScript.

  • No package.json. No npm. Not explicitly compatible with Node.

  • Imports reference source code URLs only.

    import { test } from "";
    import { log } from "./util.ts";

    Remote code is fetched and cached on first execution, and never updated until the code is run with the --reload flag. (So, this will still work on an airplane. See ~/.deno/src for details on the cache.)

  • File system and network access can be controlled in order to run sandboxed code. Defaults to read-only file system access and no network access. Access between V8 (unprivileged) and Rust (privileged) is only done via serialized messages defined in this flatbuffer. This makes it easy to audit. To enable write access explicitly use --allow-write and --allow-net for network access.

  • Single executable:

    > ls -lh target/release/deno
    -rwxr-xr-x  1 rld  staff    48M Aug  2 13:24 target/release/deno
    > otool -L target/release/deno
      /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
      /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
      /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 58286.51.6)
      /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
  • Always dies on uncaught errors.

  • Aims to support top-level await.

  • Aims to be browser compatible.

See the website for more info


With Python:

curl -L | python

With PowerShell:

iex (iwr

Note: Depending on your security settings, you may have to run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser first to allow downloaded scripts to be executed.

With Scoop:

scoop install deno

Try it:

> deno

See deno_install for more installation methods..