Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elderfo/ns-js

A super simple javascript namespacing library.
https://github.com/elderfo/ns-js

Last synced: 21 days ago
JSON representation

A super simple javascript namespacing library.

Awesome Lists containing this project

README

        

#ns-js

[![Build Status](https://travis-ci.org/elderfo/ns-js.svg?branch=master)](https://travis-ci.org/elderfo/ns-js)

ns.js is a super simple javascript namespacing library.

## Example:

#### singer.js
```
(function() {
var singer = ns.namespace("chris.getsfred.singer");

singer.sing = function() {
console.log("HELLOOOOOOOOO WOOOOOOOOOORLDDDDDD");
}
})();
```

#### index.html
```





var singer = ns.require("chris.getsfred.singer");
singer.sing();

```

####