pluggable.js (npm): Lets you make your JS code pluggable while still keeping sensitive objects and data private through closures.
Keywords: plugin