private-props
Simulation of private property for javascript (though private property isn't that needed in javascript), this module would probably be useless.
Installation
npm install -S private-props
Usage
// sample usage on how to use this modulelet props = { /** now this properties won't be accessible to the outside world */ width = 100 height = 100 /** this is publicized properties */ thisweight = 50 } // accessing property from within class { return width } moduleexports = Foo
Issues
- somehow the content of the class is visible if you supply an instantiated version of the class