Skip to content

ingpdw/js-namespacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-namespacer

declare a namespace in JavaScript

Install

$npm install js-namespacer

Usage

import namespacer from 'js-namespacer';
namespacer( window, 'obj1', 'obj2' );
//window.obj1 = {};
//vindow.obj2 = {};


import namespacer from 'js-namespacer';
var myObj = {};
namespacer( myObj, 'abc.cd' );
//myObj.abc.cd = {};

License

© 2015 ingpdw. MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published