Comparing version 1.1.0 to 1.1.5
{ | ||
"name": "cla6", | ||
"version": "1.1.0", | ||
"version": "1.1.5", | ||
"main": "lib/cla6.js", | ||
@@ -18,3 +18,7 @@ "repository": { | ||
"node": "~0.10.0" | ||
} | ||
}, | ||
"keywords": [ | ||
"class", | ||
"es6" | ||
] | ||
} |
# Cla6.js | ||
ES6 style class system | ||
ES6 style class system. | ||
Although originally designed for | ||
use with [Node.js](http://nodejs.org) and installable via `npm install cla6`, | ||
it can also be used directly in the browser. | ||
Cla6 is also installable via: | ||
- [bower](http://bower.io/): `bower install cla6` | ||
## Example | ||
```js | ||
@@ -44,3 +53,4 @@ var Cla6 = require('cla6'); | ||
Unlike classic class definition, Cla6 defines unenumerable prototype properties | ||
Unlike classic class definition, Cla6 defines unenumerable prototype properties: | ||
```js | ||
@@ -86,2 +96,11 @@ // Classic class definition | ||
## Plugins | ||
Plugins can be applied by Cla6 using the following syntax: | ||
```js | ||
Cla6.use(plugin); | ||
``` | ||
The plugin will be called with the classe's properties object anytime before it gets created, thus the properties can be manipulated. No official plugins are yet available, please stay tuned. | ||
## Download | ||
@@ -88,0 +107,0 @@ The source is available for download from |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21685
15
425
109
2