- Learning Node.js Development
- Andrew Mead
- 128字
- 2021-06-30 18:56:54
yargs
In this section, we will use yargs, a third-party npm module, to make the process of parsing much easier. It will let us access things such as title and body information without needing to write a manual parser. This is a great example of when you should look for an npm module. If we don't use a module, it would be more productive for our Node application to use a third-party module that has been tested and thoroughly vetted.
To get started, we'll install the module, then we'll add it into the project, parsing for things such as a title of the body, and we'll call all the functions that will get defined over in notes.js. If the command is add, we'll call add note, so on.
推薦閱讀
- 網(wǎng)絡(luò)協(xié)議工程
- EDA技術(shù)與VHDL編程
- 從區(qū)塊鏈到Web3:構(gòu)建未來(lái)互聯(lián)網(wǎng)生態(tài)
- 網(wǎng)絡(luò)故障現(xiàn)場(chǎng)處理實(shí)踐(第4版)
- 網(wǎng)絡(luò)創(chuàng)新指數(shù)研究
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(實(shí)踐篇)
- 2018網(wǎng)信發(fā)展報(bào)告
- 大話社交網(wǎng)絡(luò)
- WordPress Web Application Development
- IPv6網(wǎng)絡(luò)切片:使能千行百業(yè)新體驗(yàn)
- 區(qū)塊鏈技術(shù)與應(yīng)用:打造分布式商業(yè)新生態(tài)
- ReasonML Quick Start Guide
- 智能物聯(lián)安防視頻技術(shù)基礎(chǔ)與應(yīng)用
- 互聯(lián)網(wǎng)戰(zhàn)略變革與未來(lái)
- 國(guó)外物聯(lián)網(wǎng)透視