Main interface for Node.js interaction.
setup()- Initialize the environmentstop()- Pause executionaddModulePath(path)- Add NPM module search pathexecuteScript(code)- Run JavaScript codecallFunction<T>(name, ...args)- Call JS function
Wrapper for JavaScript objects with type-safe access.
Handle asynchronous operations with Promise support.
#include <FCT_Node.h>
int main() {
NodeCommon::Init();
NodeEnvironment env;
env.addModulePath("./node_modules");
env.setup();
// Interoperation code here
env.stop();
NodeCommon::Term();
return 0;
}