Skip to content

javascript function which provides an organized way to expose public functions without thinking about objects.

License

Notifications You must be signed in to change notification settings

jweir/namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

javascript function which provides an organized way to expose public functions without thinking about objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •