Rusty  Bernier

Rusty Bernier

1593260820

CLI Args Parser with Deno

Part 2 of our multi part series delving into Deno!

We’re building an HTTP Server with Deno! Today we’re adding proper CLI args parsing to the server using Deno’s flags module: https://deno.land/std/flags/

Have a watch as we make it easy and simple to change the --port of the server to whatever you want.

#deno #cli

What is GEEK

Buddha Community

CLI Args Parser with Deno
Rusty  Bernier

Rusty Bernier

1593260820

CLI Args Parser with Deno

Part 2 of our multi part series delving into Deno!

We’re building an HTTP Server with Deno! Today we’re adding proper CLI args parsing to the server using Deno’s flags module: https://deno.land/std/flags/

Have a watch as we make it easy and simple to change the --port of the server to whatever you want.

#deno #cli

Aman Agrawal

1603776654

Build A Simple CLI Tool using Deno

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.

Read this blog to learn about Building A Simple CLI Tool using Deno

https://www.loginradius.com/engineering/blog/build-a-cli-tool-using-deno/

#deno #cli #programming #javascript #java

Build A Simple CLI Tool using Deno

What is Deno?

Deno is a JavaScript/TypeScript runtime with secure defaults and great developer experience. It’s built on V8, Rust, and Tokio. I suggest you watch these talks by Ryan: He talks about his mistakes with Nodejs here and a more in-depth look into deno here

Features
  • Secure by default. No file, network, or environment access (unless explicitly enabled).
  • Supports TypeScript out of the box.
  • Ships a single executable (deno).
  • Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
  • Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno. Scripts can be bundled into a single JavaScript file.

Lets Build Something!!!

In this article, we’re going to build a simple cli tool to demonstrate some of the features of deno. Our cli will be interacting with a COVID API to fetch live data.

Requirement: make sure you have deno installed. If you don’t, refer to this link. It’s pretty straightforward.

Deno has the entry file mod.ts so we will follow the same in this article if you are following this article along with the coding you can create a folder named covid-cli, inside that folder you can create a file called mod.ts and copy the below code there.

const { args } = Deno;
import { parse } from "https://deno.land/std/flags/mod.ts";

console.dir(parse(args));

Here the parse(args, options = {}); contains two parameters where args is an Array and options is an object, let try to run the above code using this cmd.

deno run mod.ts arg1 -f hello --flag World --booleanFlag

#deno #cli tool #tool

Darren  Watsica

Darren Watsica

1597913858

Should You Learn Deno Js ? The Deno Js Intro By DESI PROGRAMMER

Hey youtube, This is Prince and welcome back to another exciting video and in this video we are going to explore a bit of Deno JS !

Comparison : 1:39
Installation : 3:39

#deno #deno js

Khaitan

Khaitan

1590306362

Deno | What is Deno? | Deno tamil

Learn what is Deno in tamil?

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.

#deno #node #javascript #typescript #rust