Skip to content

anayarojo/namespace-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namespace JS

Library for create namespaces in javascript.

Installation

npm i anayarojo-namespace-js

Usage

import namespace from 'anayarojo-namespace-js';

// Create a simple namespace
namespace('App.Module.Section');

// Create multiple namespaces
namespace('App.Module.SectionA', 'App.Module.SectionB', 'App.Module.SectionC');

// Create multiple namespaces with an array as parameter
namespace(['App.Module.SectionA', 'App.Module.SectionB', 'App.Module.SectionC']);

App.Module.Section = (function() {
    // ... functions here ...
});

About

Library for create namespaces in javascript

Resources

License

Stars

Watchers

Forks

Packages

No packages published