Run TypeScript With Deno

Execute TS/JS without a build step, with explicit permission flags.

macOSpackagesbuildscriptingLow risk
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

RiskLow risk
CompatibilitymacOS with Homebrew installed
!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: deno
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Secure runtime for JavaScript and TypeScript. Packages Deno, a modern runtime for JavaScript and TypeScript with permissions.

Last verified: 2026-09-22 · Category: Developer

06Related solutions