Optional
argOptional
colorSet color support for this Console instance. Setting to true enables coloring while inspecting values. Setting to false disables coloring while inspecting values. Setting to 'auto' makes color support depend on the value of the isTTY property and the value returned by getColorDepth() on the respective stream. Ignored if consoleOutput is not set.
Optional
columnSpecifies the first-line column number offset that is displayed in stack traces produced by this script.
Optional
consoleIf specified, will be filled in with output from the console.* functions.
Optional
contextVariables to make availble in the global scope while code is being evaluated. Overwrites global properties as needed.
Optional
envIf specified, use this instead of the current values in process.env. Works if includeGlobals is false by creating an otherwise-empty process instance.
Optional
execIf specified, execute this code on the resulting
module in an async context, with IMPORTED
being the imported module,
and arg
being the value of the arg option.
Optional
exportIf format is "globals", use this as the export variable.
What is the fully-qualified synthetic filename for the code? Most important is the directory, which is used to find modules that the code import's or require's.
Optional
formatWhat format does the code have? "guess" means to read the closest package.json file looking for the "type" key. "globals", "amd", and "bare" are not actually supported.
Optional
includeInclude the typical global properties that node gives to all modules. (e.g. Buffer, process).
Optional
lineSpecifies the line number offset that is displayed in stack traces produced by this script.
Will be available as "arg" in the exec code.