Run TypeScript With Deno
Execute TS/JS without a build step, with explicit permission flags.
Run deno eval "console.log(1 + 2)" to execute JavaScript directly.
01Command
Command
$ deno eval "console.log(1 + 2)"02What it does
Deno runs TypeScript natively, ships a built-in formatter, linter and test runner, and blocks file, network and environment access unless you pass flags such as --allow-net. That permission model reduces the blast radius of untrusted scripts.
03Risk
!Warning: Granting --allow-all defeats the sandbox; add only the permissions a script actually needs.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: denoEvidence: Secure runtime for JavaScript and TypeScript. Packages Deno, a modern runtime for JavaScript and TypeScript with permissions.
Last verified: 2026-09-22 · Category: Developer