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

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.

主站蜘蛛池模板: 马鞍山市| 禹城市| 海林市| 兴宁市| 区。| 延川县| 临安市| 界首市| 鹤峰县| 莱芜市| 旬邑县| 响水县| 丹寨县| 凤山县| 方城县| 临颍县| 卫辉市| 万年县| 商河县| 汝阳县| 朝阳区| 体育| 霞浦县| 芷江| 苍山县| 乌拉特中旗| 龙江县| 花莲县| 神农架林区| 泰来县| 赤水市| 甘南县| 德安县| 绥阳县| 西乌| 齐齐哈尔市| 镇雄县| 土默特右旗| 华蓥市| 潮州市| 建水县|