Cla6 Hidden
This is an addon plugin for Cla6.js class system library. It provides the ability to hide some of the instance's properties and therefore make some of your api's logic private without exposing it. Although originally designed for use with Node.js and installable via npm install cla6-hidden
, it can also be used directly in the browser.
Cla6 Hidden is also installable via:
- bower:
bower install cla6-hidden
Basic Examples
var Klass = ; var obj = ;console; // hiddenconsole; // undefined
You may also define hidden properties on the prototype. Don't worry, Cla6-Hidden also knows how to handle the inheritance process:
var Parent = ; var Child = ; obj = ;obj;
How To Use
var Cla6 = ;var Cla6Hidden = ; Cla6;
Download
The source is available for download from
GitHub.
Alternatively, you can install using Node Package Manager (npm
):
npm install cla6-hidden