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:
Testing Module Locally Using Install
Another Approach:
Testing Module Locally Using Links
Publishing to NPM Repository:
Publishing Module Example Js Common
Publishing Module Example Common Tools
Testing Module Remotely (After Publishing):
Testing Module Remotely
Introduction To Node.js (Chapter 905 - Coding Modules)
CHAP904 <
Coding Modules
> CHAP906
Chapter
Top
Search Site
Contents