Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/elderfo/ns-js
- Owner: elderfo
- License: mit
- Created: 2016-08-30T00:30:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T13:41:12.000Z (almost 8 years ago)
- Last Synced: 2024-10-03T22:41:04.174Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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();
```
####