Tag

yargs

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Sep 21, 2024 · Backend Development

Mastering Yargs Middleware: From Basics to Advanced Usage

Explore how Yargs middleware enhances command-line tools by allowing pre- and post-validation processing, global and command-specific hooks, and flexible implementation details, with practical code examples, API insights, and strategies for managing, freezing, and resetting middleware chains.

CLIJavaScriptNode.js
0 likes · 13 min read
Mastering Yargs Middleware: From Basics to Advanced Usage
Code Mala Tang
Code Mala Tang
Sep 21, 2024 · Backend Development

Master Command‑Line Interfaces with Yargs: From Basics to Advanced Features

This article introduces the yargs Node.js library for building command‑line interfaces, demonstrates core features such as automatic help generation, type validation, alias handling, and sub‑command support with code examples, and explains the underlying Levenshtein distance algorithm used for command recommendation.

CLIJavaScriptLevenshtein
0 likes · 13 min read
Master Command‑Line Interfaces with Yargs: From Basics to Advanced Features
Code Mala Tang
Code Mala Tang
Sep 18, 2024 · Backend Development

Mastering Yargs: Build Powerful CLI Tools with Node.js and Levenshtein Suggestions

This article introduces the Yargs Node.js library for building command‑line interfaces, demonstrates how to define options, aliases, sub‑commands, and automatic help, and explains the Levenshtein distance algorithm used for command recommendation, complete with practical code examples and performance considerations.

CLIJavaScriptLevenshtein
0 likes · 15 min read
Mastering Yargs: Build Powerful CLI Tools with Node.js and Levenshtein Suggestions
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 6, 2024 · Frontend Development

Building a Monorepo-Style Node.js CLI Scaffolding Tool for Frontend Projects

This comprehensive tutorial walks you through creating a Node.js command‑line scaffolding tool that uses yargs for argument parsing, inquirer for interactive prompts, copy‑dir for file operations, mustache for dynamic templates, and pnpm with ora for automated dependency installation, all organized in a monorepo structure.

CLIMonorepoMustache
0 likes · 30 min read
Building a Monorepo-Style Node.js CLI Scaffolding Tool for Frontend Projects