Recommend this page to a friend! |
Download .zip |
Info | View files (7) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2013-12-16 (2 years ago) | Not enough user ratings | Total: 137 | All time: 327 This week: 14 |
Version | License | JavaScript version | Categories | |||
klass-js 1.0.0 | GNU General Publi... | 1.0 | Data types, Node.js |
### klassjs It's a simple way to create classes with static, public and private methods/variables with the support of annotations. ### Example All the files are under the example folder ```javascript require ('../klass.js'); require ('./helloworld.js'); require ('./annotations/action.js'); var hw = new HelloWorld(); hw.sayHi('poste9') .sayHello(); for(var key in hw) { if (hw[key].hasAnnotation(Action)) { console.log(key + " is an action!") } else { console.log(key + " is not an action!") } } /** * Expected out: Hi poste9 Hello poste9 sayHi is an action! sayHello is not an action! Process finished with exit code 0 */ ``` |
Files |
File | Role | Description | ||
---|---|---|---|---|
example (2 files, 1 directory) | ||||
klass.js | Class | Class source | ||
package.json | Data | Auxiliary data | ||
readme.md | Data | Auxiliary data |
Files | / | example |
File | Role | Description | ||
---|---|---|---|---|
annotations (2 files) | ||||
helloworld.js | Example | Example script | ||
test.js | Example | Example script |
Files | / | example | / | annotations |
File | Role | Description |
---|---|---|
action.js | Example | Example script |
annotation.js | Example | Example script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.