- 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.
推薦閱讀
- 智慧城市:大數據、互聯網時代的城市治理(第4版)
- 物聯網安全與深度學習技術
- 物聯網關鍵技術及應用
- WordPress 5 Complete
- HTML5 Game development with ImpactJS
- Yii Application Development Cookbook(Second Edition)
- Getting Started with Grunt:The JavaScript Task Runner
- CCNP TSHOOT(642-832)認證考試指南
- 人人都該都懂的互聯網思維
- 局域網組成實踐
- 基于IPv6的家居物聯網開發與應用技術
- 物聯網與智慧農業
- 信息技術安全評估準則:源流、方法與實踐
- ElasticSearch Server
- 學術虛擬社區用戶社會化交互行為研究