Not sure of the best way to phrase this question, which is why I may be unable to find the answer.
I have a terminal program, where the user selects a game config to load, which is returned as a string. This string is the name/location of a .js file, which is in itself an Object with some functions I'd like to use.
My question is: How can I use this string (file name) to open as an object and then utilise its functions?
Can provide code upon request or if necessary.