Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Includes one Node.js source file within another.

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

Parameters

1. File path - Path to Node.js source file to include. The file name can optionally be qualified with a directory name, otherwise the pathlist is used to locate the file.

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

Exception Handling

An exception will be thrown if there are any problems including the file, such as a syntax error.

RPG Equivalent 

/COPY, /INCLUDE

  • No labels