Build a Command Line Utility

preview_player
Показать описание
Learn to build a command line tool using Deno's standard library. You'll explore how to parse arguments, handle flags, and provide helpful messages using utility functions. Follow along as we build a ski resort information app, handle errors gracefully, and compile the script into an executable for multiple platforms, including Windows, MacOS, and Linux. By the end of this video, you'll understand how to take full advantage of Deno's features to develop and distribute your own CLI tools.

00:00 Introduction to Deno's Standard Library
00:22 Setting Up the Command Line Tool
00:57 Installing and Using Standard Libraries
02:05 Building the Ski Resort Information App
03:17 Handling Command Line Arguments
05:06 Improving Error Handling
06:28 Adding Help and Color Output
08:24 Compiling the Tool for Different Platforms

Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.

Рекомендации по теме
Комментарии
Автор

What is the average binary size of the executable?

a-yo
Автор

I was really excited for this one, great video!

kacaii
Автор

Great. Should you improve it using sub commands for some purpose. Thx

morkhoudia
Автор

can we get updated comparison of performace between bun and deno

kasper
Автор

Please make a socketio walkthrough with deno2

svetlinpanov
Автор

1:04 why the jsr: prefix when adding? I would've thought it is the default and prefixes like npm: are only needed for well npm

RobertMacLeanDeveloper
Автор

i thought the -h flag was for help? curious why it was used at 1:55

thank you for these videos!

dannytabasco
Автор

You need DI in CLI apps too. Day 117 of waiting for NestJS / DI support

parlor
Автор

Quickjs is better for it. Deno is better for servers because that's where JIT actually pays off.

_Verac
Автор

build a custom framework that can generate applications for web, mobile, and desktop platforms from a single codebase including backend
*Build Web*
Create a Web folder inside the folder create all necessary file and folder for deployment
*Build mobile*
Create a Mobile folder inside the folder create all necessary file and folder for deployment
*Build desktop*
Create a Desktop folder inside the folder create all necessary file and folder for deployment

TalkSoft