官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 庆阳市| 东兰县| 冷水江市| 东山县| 黄冈市| 合川市| 福建省| 郓城县| 罗平县| 潢川县| 登封市| 湟源县| 宁乡县| 长顺县| 竹北市| 交城县| 盈江县| 连南| 汪清县| 黎城县| 安陆市| 博野县| 田林县| 宣化县| 泽州县| 巴林左旗| 毕节市| 合阳县| 济南市| 元朗区| 四子王旗| 喀喇沁旗| 东丰县| 龙海市| 黄冈市| 旌德县| 济源市| 林州市| 濉溪县| 抚远县| 丰宁|