0.0.8 • Published 11 years ago

namespacejs v0.0.8

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

Namespace.js

this library provide namespace. it is all. very simple!

build status

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:

0.0.8

11 years ago

0.0.7

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago