installLibrary, move all functions to the global namespace
<p>I am writing a library, and I have all functions being called with "lib.someFunction();" or "lib.someVariable;". I know I shouldn't pollute the global namespace, but I want to give users of my library that option. I heard some libraries have an "option" like "installLibrary();" that moves all functions and variables in a class to the global namespace.</p>

<p>This way, only users would prefer so would be able to call "someVariable;" or "someFunction();" directly.</p>

<p>My problem, though, is how to write such a function. Any ideas?</p>
