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

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.

主站蜘蛛池模板: 藁城市| 清丰县| 包头市| 淮阳县| 海伦市| 五寨县| 定西市| 顺昌县| 武定县| 大兴区| 紫金县| 饶阳县| 洪江市| 敦煌市| 太谷县| 武功县| 郓城县| 徐水县| 桑植县| 原平市| 额济纳旗| 汶川县| 拉孜县| 大同市| 吴旗县| 同仁县| 兰坪| 崇明县| 庆安县| 阿克陶县| 丹阳市| 新疆| 丹阳市| 巴里| 宝丰县| 枣庄市| 余姚市| 长武县| 厦门市| 阿勒泰市| 兖州市|