An application container can help you to make sure your app behaves the same way every time you use it, because it contains all the necessary dependecies needed. It doesn’t matter where you deploy it (e.g. on a server, a laptop, or even a virtual machine) it functions exactly the same – as a standalone package for a software. It includes the application binaries and the software dependencies too, as a self-contained unit.
What Does Require Do
When a module is loaded using the require() function, the module’s code is executed and the exports object of the module is returned. The require() function can be used to load local files as well as modules installed from npm.