class-access
v0.0.5
Published
Declarative access specifiers for ES6 classes
Downloads
2
Maintainers
Readme
class-access
Declarative access specifiers for ES6 classes.
Implements a simple approach to protected and private members in your ES6 classes, through declaration, i.e. without modifying the class.
Installing
$ npm install class-access
Loading
- Node.js
var AccessSpecifier = require('class-access');
- Browser
<script src="./class-access"></script>
<script>
// class AccessSpecifier is available here
</script>
Usage
See the wiki pages for usage examples and documentation.