- Learning Node.js Development
- Andrew Mead
- 268字
- 2021-06-30 18:56:54
Installing yargs
Now, let's view the documents page for yargs. It's always a good idea to know what you're getting yourself into. If you search for yargs on Google, you should find the GitHub page as your first search result. As shown in the following screenshot, we have the GitHub page for the yargs library:

Now, yargs is a very complex library. It has a ton of features for validating all sorts of input, and it has different ways in which you can format that input. We will start with a very basic example, although we will be introducing more complex examples throughout this chapter.
We'll now move into Terminal to install this module inside of our application. To do this, we'll use npm install followed by the module name, yargs, and in this case, I'll use the @ sign to specify the specific version of the module I want to use, 11.0.0, which is the most recent version at the time of writing. Next, I'll add the save flag, which, as we know, updates the package.json file:
npm install yargs@11.0.0 --save
- 智能網(wǎng)聯(lián)汽車V2X與智能網(wǎng)聯(lián)設(shè)施I2X
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2014年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- 物聯(lián)網(wǎng)通信技術(shù)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- Kong網(wǎng)關(guān):入門、實(shí)戰(zhàn)與進(jìn)階
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)指南
- TD-LTE無線網(wǎng)絡(luò)規(guī)劃與設(shè)計(jì)
- Android UI Design
- Getting Started with nopCommerce
- 一本書讀懂TCP/IP
- 物聯(lián)網(wǎng)與智慧廣電
- Cisco無線局域網(wǎng)配置基礎(chǔ)
- 智能物聯(lián)安防視頻技術(shù)基礎(chǔ)與應(yīng)用
- 視聽變革:廣電的新媒體戰(zhàn)略