namespacejs
v0.0.8
Published
this library provide namespace. it is all. very simple!
Downloads
2
Readme
Namespace.js
this library provide namespace. it is all. very simple!
Usage
In browser include single javascript file.
<script type="text/javascript" src="namespace.js"></script>
On server install PubsubJS via npm first:
npm install namespacejs
and then include it in your project with:
var Namespace = require('namespacejs');
##Example Usage
###Namespace#means
means
exports object to namespace.
For example, object export to "aaa.bbb.ccc" can be written using NamespaceJS as follows.
(function () {
var obj = {a: 1};
Namespace.create('aaa.bbb.ccc').means(obj);
assert(aaa.bbb.ccc, obj); // true
}());
##License: