Skip to main content

Function: getScriptDirectory()

getScriptDirectory(args?): string

Get the directory where the script is located.

Parameters

args?

string[]

The command line arguments.

Returns

string

The directory containing the entry-point script, or the current working directory if not determinable.