For a Javascript library, what is the best or standard way to support extensibility
- by Michael Best
Specifically, I want to support "plugins" that modify the behavior of parts of the library.
I couldn't find much information on the web about this subject. But here are my ideas for how a library could be extensible.
The library exports an object with both public and "protected" functions. A plugin can replace any of those functions, thus…