A secure TypeScript runtime on V8
Clone or download
ry v0.2.4
- "cargo build" support (#1369 #1296 #1377 #1379)
- Remove support for extensionless import (#1396)
- Upgrade V8 to 7.2.502.16 (#1403)
- make stdout unbuffered (#1355)
- Implement `Body.formData` for fetch (#1393)
- Improve handling of non-coercable objects in assertEqual (#1385)
- Avoid fetch segfault on empty Uri (#1394)
- Expose deno.inspect (#1378)
- Add illegal header name and value guards (#1375)
- Fix URLSearchParams set() and constructor() (#1368)
- Remove prebuilt v8 support (#1369)
- Enable jumbo build in release. (#1362)
- Add URL implementation (#1359)
- Add console.count and console.time (#1358)
- runtime arg check `URLSearchParams` (#1390)
Latest commit c6e2fff Dec 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add Docs.md Oct 20, 2018
build @ 75a7f82 build: manage win lld-link.exe thin archive flag with config("thin_ar… Dec 7, 2018
build_extra Use flatbuffers from crates.io (#1400) Dec 23, 2018
js runtime arg check `URLSearchParams` (#1390) Dec 24, 2018
libdeno Upgrade V8 to 7.2.502.16 (#1403) Dec 23, 2018
prebuilt travis: Set CARGO_HOME to third_party/rust_crates (#1370) Dec 19, 2018
src Remove support for extensionless import (#1396) Dec 23, 2018
tests Remove support for extensionless import (#1396) Dec 23, 2018
third_party @ 20d8e1d Upgrade V8 to 7.2.502.16 (#1403) Dec 23, 2018
tools Implement `Body.formData` for fetch (#1393) Dec 21, 2018
website Add deno logo to website. (#1380) Dec 20, 2018
.appveyor.yml ci: change S3 access key Dec 20, 2018
.gitattributes Add LSAN build to travis. Dec 3, 2018
.gitignore travis: Set CARGO_HOME to third_party/rust_crates (#1370) Dec 19, 2018
.gitmodules Track the master branch of the chromium_build repo Dec 8, 2018
.gn build: make `cargo build` work Dec 19, 2018
.prettierignore Remove msg_generated hack (#409) Jul 26, 2018
.prettierrc.json tools/format: format markdown files with prettier Oct 4, 2018
.travis.yml Parallelize travis Dec 20, 2018
BUILD.gn Use flatbuffers from crates.io (#1400) Dec 23, 2018
Cargo.lock v0.2.4 Dec 24, 2018
Cargo.toml v0.2.4 Dec 24, 2018
Docs.md Add Releases.md file (#1402) Dec 23, 2018
LICENSE Update LICENSE Jun 1, 2018
README.md doc: Remove TS and V8 versions from README file (#1258) Dec 1, 2018
Releases.md v0.2.4 Dec 24, 2018
Roadmap.md Add Docs.md Oct 20, 2018
build.rs cargo build: skip setup.py 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
gclient_config.py 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

README.md

deno

Linux & Mac Windows

A secure 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 "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.

Install

With Python:

curl -L https://deno.land/x/install/install.py | python

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.

Try it:

> deno https://deno.land/thumb.ts

See also deno_install.

Status

Under development.

We make binary releases here.

Docs are here.