Deno 1.0

image credits

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. — Wikipedia: Deno

The 36th Munich Node.js User Group Meetup (First virtual meetup) was last month and Deno 🦕 was also mentioned. Today version 1.0 has been released.

I wrote a docker file and pushed it also to docker hub:

FROM ubuntu:20.04

RUN apt-get update && apt-get install -y \
    curl unzip \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://deno.land/x/install/install.sh | sh

RUN mkdir /deno
VOLUME [ "/deno" ]
WORKDIR /done

EXPOSE 8080

ENTRYPOINT [ "/root/.deno/bin/deno" ]

Build the docker file as follows:

docker build -t choas/deno .

Here are a few ways to run Deno and here are more:

docker run choas/deno --version
docker run -it -v $PWD:/deno choas/deno run hello.ts
docker run choas/deno eval "console.log(6*7)"
docker run -p 8080:8080 choas/deno run --allow-net --allow-read https://deno.land/std/examples/chat/server.ts

You can find the Dockerfile on GitHub choas/deno-docker and the Docker image on docker hub choas/deno.

Summary

The Docker image is a good start, if you would like to try Deno. But you can also install it locally. The next step is the manual or What’s Deno, and how is it different from Node.js?

Will it be a bye bye Node.js?