deno runSECURE BY DEFAULT — no disk/net/env access until you pass --allow-*.
scoped grants--allow-net=api.com, --allow-read=./data; short: -N=host -E.
-A / --deny-*-A = allow all (gives up the sandbox); --deny-* overrides allow.
flags firstruntime flags go BEFORE the script; anything after → Deno.args.
native TSruns .ts zero-config; run does NOT type-check — use deno check.
ESM onlyimport/export; no require; imports need file extensions.
specifiersjsr:@std/x · npm:pkg · node:fs · https://… · ./local.ts.
deno.jsonimport map + tasks + fmt/lint/compilerOptions; run tasks with deno task.
all-in-onedeno fmt · lint · test · bench · compile · doc — no prettier/eslint/jest.
Deno.serveDeno.serve((req) => new Response()) — web-standard HTTP.
web-firstprefer fetch/Request/ReadableStream/crypto.subtle; Deno.* for the rest.
depsdeno add jsr:@std/http → deno.json + deno.lock; deno install/ci.
compiledeno compile → a single self-contained executable.
Deno 2Node/npm compatible — run existing package.json projects.
unstableDeno.openKv (--unstable-kv), FFI Deno.dlopen (--allow-ffi).
no __dirnameuse import.meta.dirname / import.meta.url / import.meta.main.