# Setup in workspace vscode "problems.decorations.enabled": false, git clone https://github.com/nasa/openmct-tutorial.git npm i open in vscode once git clone https://github.com/MrRio/vtop.git yarn mkdir perf copy in cat.js copy in bun-cat.js copy in deno-cat.js copy in E.coli # Demo 1 mkdir whoa nvm use 20 echo 22 > .nvmrc npm init npm add moment yarn pnpm ls -l node_modules bun install hyperfine "bun install --backend=hardlink" "yarn install --no-scripts" "npm install --no-scripts --ignore-scripts" "pnpm install --ignore-scripts" --prepare="rm -rf node_modules" --cleanup="rm -rf node_modules" --warmup=8 # Demo 2 index.js > console.log("Hello DevFest") index.ts node index.js bun index.js cd to vtop node ./app.js --theme becca bun ./app.js --theme becca x§ cd to openmct node example-server/server.js bun example-server/server.js var parts = message.toString().split(' '), bun bun-cat.js E.coli node cat.js E.coli hyperfine "bun bun-cat.ts E.coli" "node cat.js E.coli" --warmup 3 =-=-=-=-= # Demo 3 deno index.js Colour demo here > console.log("%cHello DevFest", "color:#def543; text-decoration:underline") new folder deno run -A npm:create-vite@latest --template react-ts deno install deno task dev deno cat.js E.coli mkdir deno deno init.. deno run dev deno deno-cat.ts E.coli ``` import OpenAI from "https://deno.land/x/openai/mod.ts"; const client = new OpenAI(); const chatCompletion = await client.chat.completions.create({ messages: [{ role: 'user', content: 'Give me a joke about a duck and a programmer' }], model: 'gpt-4o-mini', }); console.log(chatCompletion.choices[0]?.message?.content); ``` deno run main.ts deno add npm:openai ``` import OpenAI from "npm:openai"; ``` deno run -A main.ts https://jsr.io/@sadev/rainbow deno add jsr:@sadev/rainbow ``` import { rainbowText } from '@sadev/rainbow'; const response = await fetch('https://sadev.co.za/iloveyou.txt'); console.log(rainbowText(await response.text())) ``` deno run -A rainbow.ts # Backups hyperfine "bun install --no-cache --backend=hardlink" "yarn install --force --no-scripts" "npm install -f --no-scripts --ignore-scripts" "pnpm install --force --ignore-scripts" --prepare="rm -rf node_modules bun.lockb package-lock.json pnpm-lock.yaml yarn.lock" --cleanup="rm -rf node_modules bun.lockb package-lock.json pnpm-lock.yaml yarn.lock" --warmup=8