deno is the future?

jheysonsaav

Jheyson Saavedra

Posted on December 11, 2020

deno is the future?

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.

GitHub logo denoland / deno

A secure JavaScript and TypeScript runtime

Deno

Build Status - Cirrus Twitter handle Discord Chat

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
Enter fullscreen mode Exit fullscreen mode

PowerShell (Windows):

iwr https://deno.land/x/install/install.ps1 -useb | iex
Enter fullscreen mode Exit fullscreen mode

Homebrew (Mac):

brew install deno
Enter fullscreen mode Exit fullscreen mode

Chocolatey (Windows):

choco install deno
Enter fullscreen mode Exit fullscreen mode

Scoop (Windows):

scoop install deno
Enter fullscreen mode Exit fullscreen mode

Build and install from source using Cargo:

cargo install deno --locked
Enter fullscreen mode Exit fullscreen mode

See deno_install and releases for other options.

Getting Started

Try running a simple program:

deno run https://deno.land/std/examples/welcome.ts
Enter fullscreen mode Exit fullscreen mode

Or a more complex one:

import {
Enter fullscreen mode Exit fullscreen mode

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.

💖 💪 🙅 🚩
jheysonsaav
Jheyson Saavedra

Posted on December 11, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

A Gentle Intro to TypeScript
typescript A Gentle Intro to TypeScript

July 11, 2024

deno is the future?
typescript deno is the future?

December 11, 2020

Let's rewrite Typescript in Rust!
typescript Let's rewrite Typescript in Rust!

June 24, 2020