Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

javascript-typescript-Deno CLI

Installation
Deno ships as a single executable with no dependencies.

Shell (Mac, Linux):
$ curl -fsSL https://deno.land/install.sh | sh

Build and install from source using Cargo:
$ cargo install deno --locked

Try running a simple program:
$ deno run https://deno.land/std/examples/welcome.ts

Or a more complex one:
$ import { serve } from "https://deno.land/std/http/server.ts";
serve(req => new Response("Hello World
"));

Source by deno.land #
 
PREVIOUS NEXT
Tagged: #CLI
ADD COMMENT
Topic
Name
2+3 =