Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The #inlcude #include directive includes one Node.js source file within another.

...

The file name can optionally be qualified with a directory name, otherwise the pathlist is used to locate the file. 


Examples

Code Block
languagejavascript
titleInclude another Node.js source file
// Included file is copy.js in the pathlist
#include copy.js
 
// Included file is mylib/copy.js in the 'modules' directory
#include mylib/copy.js

...