Member-only story
Deno vs. Node.js — Here Are the Most Important Differences
Security, both under the hood, the window-object & TypeScript support
Is Deno the new Node.js? Or is it just a nice alternative? In this article we will go into some important differences and features — have fun!
The main differences between Node.js & Deno:
- Deno uses Rust under the hood, but also the V8 engine, just like Node.js.
- Deno supports TypeScript out of the box. It can also deal with JavaScript, without any problem, out of the box.
- Deno does not support NPM packages, and does not use the node_modules directory. Libraries are imported via the URL.
- Deno uses a permission-system for code to be executed.
- The window object is supported in Deno — even though, we are writing back-end code.
The history and story behind Deno
Now already treated by some as the next big thing, and come to displace Node.js, both have one origin: Ryan Dahl
Dahl worked on the Node project since 2009, but stepped back from it a few years later. In 2018 he gave the 10 Things I Regret About Node.js talk, in which he also announced Deno — a new…