NPM and Package.json

NODE.JS and NPM

Node.js is an open source runtime environment for developing Web application services. The environment contains packages which are managed by npm (node package manager). These packages are referred to as node.js modules.

PACKAGE.JSON

To create a new module, one must create a package.json file to store the vast varieties of data that is being managed. By using npm init, you can initialize a new package.json file and set proper default values for its fields. Another file is required that will load your module once it’s required. Within this new index.js file you created, you will run a function with an exports object property so it can be available to other code.