What is deno?
Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js".
advantages of deno
- fast and safe
- typescript support
- new dependency management system
- best adaptation of ecmascript
Why use deno?
Over time, technologies evolve and improve, this is the case of nodejs and one of the most common improvements is that we will avoid the tedious node_modulos folder and it will no longer be necessary to have 1gib of modules since it does not handle the modules in the cache. better way.
Deno
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
Features
- Secure by default. No file, network, or environment access, unless explicitly enabled.
- Supports TypeScript out of the box.
- Ships only a single executable file.
- Built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
- Set of reviewed standard modules that are guaranteed to work with Deno.
Install
Shell (Mac, Linux):
curl -fsSL https://deno.land/x/install/install.sh | sh
PowerShell (Windows):
iwr https://deno.land/x/install/install.ps1 -useb | iex
Homebrew (Mac):
brew install deno
Chocolatey (Windows):
choco install deno
Scoop (Windows):
scoop install deno
Build and install from source using Cargo:
cargo install deno --locked
See deno_install and releases for other options.
Getting Started
Try running a simple program:
deno run https://deno.land/std/examples/welcome.ts
Or a more complex one:
import {
…The project grows more and more every day and more projects are adopting it, however, it is not still a very green project that is just bearing fruit.
Top comments (2)
Deno is the future, but it does not mean that NodeJS will die.
completely agree