Versions Compared

Key

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

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

The included source file may contain other compile directives. See Profound.js Directives for more information.

Parameters

1. File path - Path to Node.js source file to include. , such as additional #include lines.

The syntax for the #include directive is as follows:

Code Block
languagejavascript
#include file-name

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

 

Examples

Code Block
titleInclude another Node.js source file
// Included file is copy.js in the pathlist
#include pjs.include("copy.js");
 
// Included file is mylib/copy.js in the 'modules' directory
#include pjs.include("mylib/copy.js");

Exception Handling

...


RPG Equivalent 

/COPY, /INCLUDE