Skip to content

expose the environment-dependent export method #1

@marianoguerra

Description

@marianoguerra

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions