- 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
- 智慧城市:大數(shù)據(jù)、互聯(lián)網(wǎng)時(shí)代的城市治理(第4版)
- 物聯(lián)網(wǎng)標(biāo)準(zhǔn)化指南
- Web安全防護(hù)指南:基礎(chǔ)篇
- GPS/GNSS原理與應(yīng)用(第3版)
- Web Application Development with R Using Shiny
- PLC、現(xiàn)場(chǎng)總線及工業(yè)網(wǎng)絡(luò)實(shí)用技術(shù)速成
- 通信簡(jiǎn)史:從信鴿到6G+
- 5G技術(shù)與標(biāo)準(zhǔn)
- 6G無(wú)線網(wǎng)絡(luò)空口關(guān)鍵技術(shù)
- 一本書讀懂物聯(lián)網(wǎng)
- Hands-On Bitcoin Programming with Python
- 云計(jì)算技術(shù)與標(biāo)準(zhǔn)化
- 華為HCIA-Datacom認(rèn)證指南
- Guide to NoSQL with Azure Cosmos DB
- Migrating to Drupal7