Namespacer.js
A simple library for creating namespaces in the browser
// Create the namespace // Use the namespace foobarbaz = a: 1 // Pass an object directly '' // Retrieve an object from a namespace, if it doesn't exist it will just return an empty object var a = ;
Namespacer takes care of not replacing existing objects.
Install
npm install namespacerjs
Test
webpack
Open test/index.html in a browser
or
npm test
Build
npm install
webpack