Getting Started

install

Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

--Deno Team

Note

This document mainly copied content from official site. However, there is some enhancement to minimize the content of valuable assets.

Download and install#

Using Shell (macOS and Linux):

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

Using Homebrew (macOS):

brew install deno

Setup your environment#

VS CODE:

The beta version of vscode_deno is published on the Visual Studio Marketplace. Please report any issues.

Using command line interface:

code --install-extension denoland.vscode-deno

Create Alias for deno run#

~/.bash_profile
alias denorun="deno run -A"

This will help and ease the running application in local.

AVOID IN PROD

Please don't use in actual enviroment.

Hello World Program#

examples/01_hello_world.ts
function main() {
console.log(`Hello "world"`);
}
main();

How to run example:

denorun examples/01_hello_world.ts
## OR
deno run examples/01_hello_world.ts