Deno Secure TS runtime
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
deno initdeno run main.ts
deno run -R -N main.ts
deno task <name>
deno add jsr:@std/assert
deno testdeno fmt && deno lint
deno compile main.ts
Concepts
- Specifier jsr: npm: https:
- Cache deno.lock pins it
- Type-check TypeScript built in
- Run sandboxed by flags
Run and permissions
deno run <file>
deno run -A <file>
--allow-read[=<path>] / -R
--allow-write[=<path>] / -W
--allow-net[=<host>] / -N
--allow-env[=<VAR>] / -E
--deny-read=<path>
--no-promptdeno run --watch <file>
--env-file[=<path>]
deno eval "<code>"
deno repldeno serve <file>
--inspect-brkTasks and config
deno taskdeno task <name>
deno task "<prefix>:*"
deno task -r <name>
deno init <dir>
| Form | Meaning |
|---|---|
"build": "deno run ..."
|
Plain command string |
"command" |
Command in object form |
"description" |
Shown in task list |
"dependencies" |
Tasks run first, in parallel |
Dependencies
deno add <pkg>
deno add jsr:@std/<name>
deno add npm:<pkg>
deno installdeno remove <pkg>
deno outdateddeno outdated --update
deno info [<file>]
deno auditTest and check
deno testdeno test <file>
deno test --filter "<name>"
deno test --coverage
deno test --parallel
deno check <file>
Format and lint
deno fmtdeno fmt --check
deno lintdeno lint --fixBuild and publish
deno compile <file>
deno compile -o <name> <file>
deno compile --target <triple>
deno upgradeRecipes
# read one folder, call one API, load .envdeno run --allow-read=./data --allow-net=api.example.com \ --env-file main.ts
deno init my-app && cd my-appdeno add jsr:@std/assertdeno task devdeno test
deno fmt --checkdeno lintdeno check .deno test --coverage --fail-fastdeno audit
deno compile --allow-read --allow-net -o mytool main.tsdeno compile --target aarch64-apple-darwin -o mytool-mac main.ts



