Example


We know that we use "modules" to share code in Node.js. Let's create our own.

Each module will have a separate directory and will have one "entry point" (file).

Here is a working example of a module and a module-user:

See "rec/README.md" for instructions, and also here...

Testing Module Locally (Before Publishing)


Suggested Approach:


Another Approach:


Publishing to NPM Repository:



Testing Module Remotely (After Publishing):