Repository navigation
Home
namespace.js is designed to be simple - without creating functionality that might hinder adoption into multiple projects. The goal is to gain wide adoption of this pattern, so that module developers can more easily share independently developed code.
Never the less, there may be some essential features that are missing, or the ability to extend namespace.js, that could be required by some users. I'll list here features for consideration - please feel free to add more, or discuss.
- console.logging - Its sometimes useful to see debug information about forward references and confirming namespaces are loading.
- Create Mock namespaces - for testing.
- callback hooks - support module loading extensions?
- ** _path and .nameOf ** - ability for namespace to read it's own path.
- ** _parent **
- ** _referenced ** - namespaces referenced by this one - for auto loading.
- VERSION support - do something intelligent in multi-loading scenarios.
See also the original, more featurful (and idiosyncratic) pageforest namespace.js.
See Design Questions
There are some very basic JavaScript extensions, that nearly every project needs to (or should) add. Many of these are covered in the larger libraries. But I felt it would be useful to implement namespace.js-friendly versions of some of these. They also serve as models for how to write namespace.js style modules in general.
- Create Google Clusure externs file.