nx.js
NamespacesSwitchVariables

entrypoint

const entrypoint: string = $.entrypoint

String value of the entrypoint JavaScript file that was evaluated. If a main.js file is present on the application's RomFS, then that will be executed first, in which case the value will be romfs:/main.js. Otherwise, the value will be the path of the .nro file on the SD card, with the .nro extension replaced with .js.

Examples

"romfs:/main.js"
"sdmc:/switch/nxjs.js"

On this page