-
Notifications
You must be signed in to change notification settings - Fork 4
expose the environment-dependent export method #1
Copy link
Copy link
Open
Description
at the end of the code you expose the module in different ways depending on the environment we are in, I think that that is a nice functionality for others to use, I would like to have that functionality available to avoid copy pasting that in my code.
maybe something like:
fs.expose = function (module, moduleId, defaultNamespace) { ./* your code here */ }
- module would be what now is $NS
- moduleId would be the what now is "FUNCTION_STACK" so you access to the global config with global["" + moduleId + "CONFIG_"]
- defaultNamespace would be what now is "fs", to be used in __global[defaultNamespace] = $NS
PS: markdown is doing weird things with the formatting of the code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels