executing JavaScript and TypeScript outside the browser in a single executable (denocode). Deno is secure by default, with no file, network, or environment access unless explicitly enabled. It is built on top of: • V8 • Rust • Tokio (event loop) • TypeScript
of using NodeJs: • A poorly designed module system, with centralized distribution. • Lots of legacy APIs that must be supported. • Security. (These problems aren't unique to Node. Python and Ruby suffer similarly)
in Node. • ES modules are the one and only module system ◦ HTTP URLs are used to link to third party code ◦ Deno has the ability to fetch resources itself, so it is its own package manager. • Deno is secure by default ◦ Users must give extra permission to access the disk, network, or otherwise do privileged operations. • Deno maintains browser compatibility ◦ The subset of Deno programs which are written completely in JavaScript and do not use the global Deno object should also run in a modern web browser without change.
for await (const req of serve({ port: 8000 })) { req.respond({ body: "Hello World\n" }); } And you can run by deno run example.js. Other commands include: deno -h REPL deno --types cat program location.href import.meta