Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

prabirshrestha/js-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

js-namespace Javascript Library

License: Dual licensed under the MIT or GPL version 2 licenses.

http://github.com/prabirshrestha/js-namespace/raw/master/LICENSE.txt

Basic Usage

<script type="text/javascript" src="js-namespace.min.js"></script>
<script type="text/javascript">
	if(!NS.exists('Prabir.Shrestha'))
		NS.register('Prabir.Shrestha');
		Prabir.Shrestha.MySDK = function(){
		 return {
			  public_method : function() {
				   alert('I am a public method');
			  }
		 };
	};
	var mySdk = new Prabir.Shrestha.MySDK();
	mySdk.public_method();
</script>

About

Javscript Namespace Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published