deno js code example

Example 1: install deno

#Using Shell (macOS and Linux):
curl -fsSL https://deno.land/x/install/install.sh | sh

#Using PowerShell (Windows):
iwr https://deno.land/x/install/install.ps1 -useb | iex


#Using Scoop (Windows):
scoop install deno

#Using Chocolatey (Windows):
choco install deno

#Using Homebrew (macOS):
brew install deno

#Using Cargo (Windows, macOS, Linux):
cargo install deno

Example 2: deno

## run dynamic file deno using Makefile

deno:
ifdef file:
	deno run -c tsconfig.json ${file}.ts
endif

Example 3: denojs

$cargo install deno

Example 4: denojs

$iwr https://deno.land/x/install/install.ps1 -useb | iex

Example 5: denojs

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

Example 6: denojs

$brew install deno

Tags: