This is small library that uses object-capability security model to allow object composition with a private APIs. This library uses "light-traits" implementation of traits as an object composition mechanism.
See docs for more details and examples.
npm install membrane-traits
Don't assume that usage of this library will magically make your code secure! Using library without understanding what it does most likely will be harmful, so please make sure you understand what it does before using it.