CodeNewbie Community

Discussion on: Iā€™m Danielle Adams, Node.js Language Owner at Heroku. Ask Me Anything!

Collapse
nickytonline profile image
Nick Taylor

Danielle, thanks so much for doing this AMA.

I love JavaScript, node.js, and TypeScript, so Iā€™m curious if you have any thoughts on the Deno project from node.js creator Ryan Dahl?

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
Collapse
nickytonline profile image
Nick Taylor

As a follow up, what's your favourite newer (or older) EcmaScript language feature?

Collapse
danielleadams profile image
Danielle Adams Ask Me Anything

This might be lame, but I think fat arrow functions were a game changer. I like not having to declare a self or bind to a this. šŸ˜‚

Collapse
danielleadams profile image
Danielle Adams Ask Me Anything

I'm so glad you asked this! I wish I had mentioned Deno on the podcast - it completely slipped my mind and is the obvious alternative for Node.js right now :) I haven't played around with it much except for on my local machine, but it looks promising and I like that it has JavaScript AND first-class TypeScript support.