- What is Deno
- Background and history
- Features
- Installation
- Contributors
cd step1
deno run https://raw.githubusercontent.com/mrgrain/deno-talk/master/step1/welcome.ts
code welcome.ts
import { bold, cyan, italic, red } from "https://deno.land/std/fmt/colors.ts";
cd step2
deno run welcome.ts
deno
deno eval "console.log('hello world')"
cd step3
code --install-extension denoland.vscode-deno
deno info
deno lint welcome.ts
deno fmt welcome.ts
deno run some_test.ts
cd step4
# bash
deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash
# zsh
mkdir ~/.oh-my-zsh/custom/plugins/deno
deno completions zsh > ~/.oh-my-zsh/custom/plugins/deno/_deno
deno cache --lock=lock.json --lock-write welcome.ts
deno cache --lock=lock.json --reload welcome.ts
deno run --lock=lock.json --cached-only mod.ts
deno cache welcome.ts
deno run welcome.ts "Name"
deno cache -r welcome.ts
# Clean cache ~> this will change
deno info
rm -rf /path/to/DENO_DIR
deno bundle welcome.ts welcome.js
deno run -r welcome.js "Name"
deno install welcome.ts
welcome "Name"
git commit
git tag 1.2.3
git push origin 1.2.3
See: https://deno.land/[email protected]/getting_started/permissions#permissions
cd step5
welcome(Deno.env.get("USER"));
deno run --allow-env welcome.ts
deno run --allow-env=USER welcome.ts
const greetings = JSON.parse(
await Deno.readTextFile("./greetings.json"),
) as string[];
greetings.forEach(welcome);
deno run --allow-env=USER --allow-read welcome.ts
deno run --allow-env=USER --allow-read=greetings.json welcome.ts
deno install --allow-env=USER --allow-read=greetings.json welcome.ts
deno run --prompt welcome.ts
Fetch API & Top-level async await
deno run --allow-net fetch.ts
deno run wasm.ts
deno run --location=http://localhost memory.ts
deno run --location=http://localhost memory.ts Momo
deno run --location=http://localhost memory.ts
deno run --import-map=import_map.json import.ts