A new way to JavaScript
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add item to CONTRIBUTING.md about needing tests Feb 1, 2019
build @ 1e3840b build: write a gcc-style depfile when using clang-cl (#1525) Jan 15, 2019
build_extra third_party: add the 'integer-atomics' crate Jan 26, 2019
js Add isTTY function (#1622) Feb 3, 2019
libdeno Fix v8_str internalize bug Feb 2, 2019
prebuilt Upgrade sccache binaries to 0.2.8 (#1576) Jan 26, 2019
src Add isTTY function (#1622) Feb 3, 2019
tests Add isTTY function (#1622) Feb 3, 2019
third_party @ 5ff36c8 third_party: add the 'integer-atomics' crate Jan 26, 2019
tools Add isTTY function (#1622) Feb 3, 2019
website Add hashlinks to website (#1659) Feb 3, 2019
.appveyor.yml appveyor: Remove dead code (#1621) Jan 30, 2019
.editorconfig Create .editorconfig file (#1592) Jan 26, 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 Support --fmt Feb 2, 2019
.prettierrc.json tools/format: format markdown files with prettier Oct 4, 2018
.travis.yml Upgrade sccache binaries to 0.2.8 (#1576) Jan 26, 2019
BUILD.gn Add performance.now (#1633) Feb 2, 2019
Cargo.lock v0.2.10 Feb 2, 2019
Cargo.toml v0.2.10 Feb 2, 2019
Docs.md web design (#1655) Feb 2, 2019
LICENSE Happy new year! Jan 2, 2019
README.md Improve build instructions (#1593) Jan 31, 2019
Releases.md v0.2.10 Feb 2, 2019
Roadmap.md Add Docs.md Oct 20, 2018
build.rs chore: update license lines (#1557) Jan 21, 2019
build_overrides move v8 to third_party/v8 (#322) Jul 3, 2018
buildtools move v8 to third_party/v8 (#322) Jul 3, 2018
gclient_config.py chore: update license lines (#1557) Jan 21, 2019
node_modules chore: reorganize symlinks Jul 6, 2018
package.json Revert "Upgrade tslint and friends (#1571)" (#1573) Jan 26, 2019
rollup.config.js chore: update license lines (#1557) Jan 21, 2019
testing move v8 to third_party/v8 (#322) Jul 3, 2018
tsconfig.json Compiler cleanups and minor improvements (#1656) Feb 2, 2019
tslint.json tslint: no-unused-variable is deprecated. Oct 4, 2018

README.md

deno

Linux & Mac Windows

A new way to JavaScript.

  • 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 "https://unpkg.com/deno_testing@0.0.5/testing.ts";
    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
    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 deno.land.

Install

With Shell:

curl -L https://deno.land/x/install/install.sh | bash

With PowerShell:

iex (iwr https://deno.land/x/install/install.ps1)

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 https://deno.land/thumb.ts

See deno_install for more installation methods..

Build locally (advanced users only)

For instructions to build this project locally, please see the docs.