đź“ť Edit page
âž• Add page
Features
What Deno includes or reasons to use Deno. Based on post.
- Extensive standard lib.
- Sandboxed execution for security.
- Builtin-in support for:
- Modern JavaScript.
- Compatibility with the browser - Includes
fetch
andwindow
, unlike Node.js. - TypeScript - Replaces installing TypeScript. And it can even execute TS directly without first compiling to JS.
- ES Modules - Allow module imports as
import ...
. No more CommonJSrequire
syntax - Promises - Includes
async-await
syntax. And top-levelawait
(it was added to Node later). - Bundling - Replaces Webpack and rollup)
- Linting - Replaces ESLint
- Formatting - Replaces Prettier
- Testing - Replaces Jest, Jasmine etc.
- Replaces NPM.
- No package manager needed (no
package.json
and nonode_modules
). - Install 3rd party packages from Deno’s registry.
- NPM packages can be installed to, but you’ll probably need to reference a CDN which will provide your with a module file compatibile with Deno.
- If you don’t like having your package URLs (and their version numbers) spread throughout your scripts, you can make a central file which sets aliases for the URLs.
- No package manager needed (no
Deno runs on the server side but of course like Node.js it can be used to process and bundle scripts to be served on the frontend.