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 18 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

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

The included source file may contain other compile directives, such as additional #include lines.

The syntax for the #include directive is as follows:

#include file-name

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


Examples

Include 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


RPG Equivalent 

/COPY, /INCLUDE

  • No labels