How to Use a Package (Module) in JavaScript (NodeJS)

preview_player
Показать описание
Package is a project dependency, independent code that can perform a certain task, a module and it can be published, installed, uninstalled, shared and you can contribute to its functionality. A package solves a problem. A package has a functionality. Packages are global and local. You can use a global package. Global packages offers commands that can be used to do something. For example create-react-app is a global package and that is used to create reactJS boiler plate. NPM is global module that is used to manage packages. There are local modules or packages also. You can install / uninstall modules from npm registry by using npm commands. When you install a module it becomes a local module. Node Modules folder contains installed packages or modules. Usually name of package is same name that was used to install it. If you are using NodeJS, you can require a module with same name that was used to install it. You can define a const and require a module. Then you can call that const and use functionality that is within that module. In video example we have used moment package to display current date.

#npm #nodejs #module #packagemanager #webstylepress #webdevelopment
Thank You!

Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

Рекомендации по теме
visit shbcf.ru