Deno is a run time of JavaScript and TypeScript. It's created by the same person who created NodeJS -- Ryan Dahl.
Recently They have published the stable version of Deno 1.0.0
We also created a Facebook group for Developers:
Deno Developers Bangladesh
Deno Installation
macOS and Linux:
curl -fsSL https://deno.land/x/install/install.sh | sh
Using Homebrew: brew install deno
Windows:
iwr https://deno.land/x/install/install.ps1 -useb | iex
Now Try to run deno --version in your terminal, if don't works then you might need to add the path on your OS.
For More Installation options Click Here
Visual Studio Code Setup
- Create a project directory, Let's say
hello-denois the name of the directory/folder. - Now create a
index.tsfile and.vscodedirectory, in the root directory. - Install the Deno extension for vscode. Which is created by axetroy.
- Create a
settings.jsonin.vscodedirectory. - add
{ "deno.enable": true, }insettings.jsonfile. -
console.log("Hello Universe...")in theindex.tsfile. - On your terminal go to the project directory and run
deno run index.ts
Note: Deno can compile both JavaScript and TypeScript. So, your file extension also can be .js
Top comments (1)
These instructions are for the deprecated Deno extension from
axetroy, not for the official VSCode extension fromdenoland.