ApplesauceOS
Read Markdown ↗Download .md

__filename

Locate the current module file.

js
__filename

Arguments

No arguments.

Returns

Absolute filename string.

Example

js
console.log(__filename);

Notes

A runtime property, not a function. Module state is separate for each script iteration.

All JavaScript APIs · Automation playbook