Skip to content
javascript function which provides an organized way to expose public functions without thinking about objects.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
LICENSE
README
index.html
namespace.js

README

namespace
an Erlang inspired method for organizing functions

Simple example

    (function(){
      namespace("example", public);
    
      function private(){ return "private" };
      function public(){ private(); };
    }());
    
    example.public() // -> "private"


See http://jweir.github.com/namespace for documentation
You can’t perform that action at this time.