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

Installing the lodash module in our app

To install a module in the app, we will run a command over in the Terminal. In this chapter, we'll be installing a module called lodash. The lodash module comes with a ton of utility methods and functions that make developing inside Node or JavaScript a heck of a lot easier. To take a look at what exactly we're getting into, let's move into the browser.

We'll to go to https://www.npmjs.com. Then we'll search for the package, lodash, and you can see it comes up, as shown in the following screenshot:

When you click on it, you should be taken to the package page, and the package page will show you a lot of statistics about the module and the documentation, as shown here:

Now, I use the lodash package page when I'm looking for new modules; I like to see how many downloads it has and when it was last updated. On the package page, you can see it was updated recently, which is great it means the package is most likely compatible with the latest versions of Node, and if you go further down the page, you can see this is actually one of the most popular npm packages, with over a million downloads a day. We will be using this module to explore how to install npm modules and how to actually use them in a project.

主站蜘蛛池模板: 衡山县| 双流县| 唐河县| 成安县| 沾化县| 澄城县| 洪泽县| 宝兴县| 英山县| 嘉义县| 梧州市| 封开县| 明星| 睢宁县| 连平县| 鹤壁市| 巴塘县| 杨浦区| 监利县| 大悟县| 中方县| 潢川县| 天柱县| 娱乐| 五华县| 茶陵县| 保康县| 高安市| 赣榆县| 大石桥市| 昆山市| 皋兰县| 仁布县| 临沧市| 乐昌市| 沾化县| 昌平区| 颍上县| 达日县| 高碑店市| 丘北县|