- 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.
推薦閱讀
- 社交網絡對齊
- 數據通信網絡實踐:基礎知識與交換機技術
- Application Development with Qt Creator(Second Edition)
- INSTANT PhpStorm Starter
- 物聯網檢驗檢測技術
- HTML5 Game development with ImpactJS
- 面向云平臺的物聯網多源異構信息融合方法
- 計算機網絡與通信(第2版)
- 物聯網安全技術
- WordPress Web Application Development
- 基于性能的保障理論與方法
- 端到端QoS網絡設計
- Android UI Design
- 移動物聯網:商業模式+案例分析+應用實戰
- 5G非正交多址接入技術:理論、算法與實現