{"_id":"modus","_rev":"33-be651e5e14d6e2f4e5da82ee046a150f","name":"modus","description":"Modules for the web","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"modus","version":"0.1.0","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"devDependencies":{"qunitjs":"~1.13.0","grunt":"~0.4.2","grunt-contrib-connect":"~0.7.1","grunt-contrib-qunit":"~0.4.0","grunt-contrib-nodeunit":"~0.3.3"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.12","lodash":"~2.4.1"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.0","dist":{"shasum":"948926c77e85003dba7009a36e6ef007c547d7ad","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.0.tgz","integrity":"sha512-5XYg7FYMfTiKd/m90HjPDMJeqpBBTjH/1KMEVCPTbRFjOQhPVPs/xbc/Ma7H8F8nTKnCzJ5ZWe0wwmpJt/l68Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDETkdbOQItDho1i2A7T1gwknbU9TJI8vuO/2dV9GqDZAIhAMakKV3RYkEdKCs6FsIoEsZnd5kT6OI8Y4NgDZnp/UGB"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.1":{"name":"modus","version":"0.1.1","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"devDependencies":{"qunitjs":"~1.13.0","grunt":"~0.4.2","grunt-contrib-connect":"~0.7.1","grunt-contrib-qunit":"~0.4.0","grunt-contrib-nodeunit":"~0.3.3"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.12","lodash":"~2.4.1"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"_id":"modus@0.1.1","dist":{"shasum":"74356d06686455c8b075f246f93f375d057d2584","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.1.tgz","integrity":"sha512-Qg98vWaovVH8djXcaA3znTUYWUCx3LWK3XovQw0hmzxww24zLyJeUh6hOAwb53Qkug0/BKtGBpmTQFinxhCbbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpbr5DqDibnbhPyg5kR0MyxnVtCBYCV0VtYsfVKINb/QIgBSWoKK6VGzuXgy1I+NyF1u/mwofE34e4m8V1CW24nDs="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.2":{"name":"modus","version":"0.1.2","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.12","lodash":"~2.4.1"},"devDependencies":{"gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-qunit":"^0.3.3","qunitjs":"^1.14.0"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.2","_shasum":"25349a59dda313a6ebb316c01d3d4d9806d30bd7","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"25349a59dda313a6ebb316c01d3d4d9806d30bd7","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.2.tgz","integrity":"sha512-BHE3jw8C6IsGiU6WkeNn9LPmwR+zd8fsqa1Vp84NHC49X+kPhjn55NWCJEl67ktoKAVy/ZZprwZ0vCh66lEksA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHs8b7KlybJCkcVqScw8FOTOdzqa/LUioRSD8xECZ7CwAiAp7gOUhq8k4J2MRqhBGF3AbSrh12Uqik3jyS0GSVB3vw=="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.3":{"name":"modus","version":"0.1.3","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.3","dist":{"shasum":"c542958e146e36632e878b87d4bbbc12499b4ad0","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.3.tgz","integrity":"sha512-9CqsOF8JrQlakhrt+Bg1gqnOpbgWpCKd6NEPF+qd0wSOgzrgi+NRqE8X4bTxTwMu+LMixXvY0hb4psXxysVb9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFvqgw6dhiI9RlK5z+58bAnBt1Ti3E/CoQGdr0O7vG9AIhAPj88IN36ihlWItTkHLjdvKYitQmyDuC8CtDnEATWKpp"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.4":{"name":"modus","version":"0.1.4","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"16aaa4fbe43b8c4ea0ecde23326d494f5e3bb585","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.4","scripts":{},"_shasum":"c7396084b943b2057d1b5cddd4ef8ee07fa24a51","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"c7396084b943b2057d1b5cddd4ef8ee07fa24a51","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.4.tgz","integrity":"sha512-ZY+u/Hky0V/em/vDtiT8cwFMkQ50QI5l8mKKwSkX8yookPFmDaWWV7YO7QLvrkO2Fkk/eOnFC6cZurhCHiFwSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/u2EaszHg4Vwp33iJn2A7XijVOB0a3NlHkzjWcxS4egIgM+oCFycP2zUPIF2vTvx/w5WkzOr4c9T6+xzD/Qmt2U0="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.5":{"name":"modus","version":"0.1.5","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"bcf2f0c8e0a1637b9224d8f59de1c37045e6fb3b","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.5","scripts":{},"_shasum":"84acef934e10b213daacf50446cf1a47e0f872b2","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"84acef934e10b213daacf50446cf1a47e0f872b2","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.5.tgz","integrity":"sha512-jToX8XCl0zvryg6+maVfbYjxjrgwZh7n5bDT/7abXeyB0hqP8xQZUKi4/8IorZhToU0hXClnswIHxfBc1woAiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtZxsi1Y5WSUqU6NxtsgA54iUvYfCRzv2Hm/X5nAvx4AiBiFaFXRLKgQGHm4svuRm3RuK6kMWr4PJ6kDVal9RjolQ=="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.6":{"name":"modus","version":"0.1.6","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"404d55cf74ef1e29b985522427b96ed30a092794","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.1.6","scripts":{},"_shasum":"34ac884756f17aa2b1bc2bd5c4ff16387d5269eb","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"34ac884756f17aa2b1bc2bd5c4ff16387d5269eb","tarball":"https://registry.npmjs.org/modus/-/modus-0.1.6.tgz","integrity":"sha512-9e2JrPay8CeKgcdLrlYL+ajSUK1/FrKQeqZfF1ZKgk0yQKisX06zlqqUUM9A5Z2JV7VfY969arPtYfoL3IdOPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwlqCPHz2TUiP3itIlqnsXoST0Hv5QjrGt0qhUkIrNOAiEAxaEl0bmJsH0e8cOXsIz9RME7ChR+B8fuhDBE6qECoHE="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.0":{"name":"modus","version":"0.2.0","keywords":["module","loader"],"description":"A lightweight module loader","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.2.0","dist":{"shasum":"4107294da449d550d462c35bb5aed40df46fdc00","tarball":"https://registry.npmjs.org/modus/-/modus-0.2.0.tgz","integrity":"sha512-LnZpmjHMA8fF6QtVapYA1vGho7y5gV0If2EOaFC5n6FQcO3QIJKfCSO15nEwECnJMbJsrzP6VzNarj34EjO9zQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuB0nNwWPjZxNYPUKOAObNoVKJLDmlxEoIOT2v9GB/5AiEAnQK18EdNJwKFR2OtfXF0qz2LqdGvaH+q8QbltZu+B+w="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.1":{"name":"modus","version":"0.2.1","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"4b4490e45c21526c1db5ad434601beb85e6f0ed0","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.2.1","_shasum":"8fd5d23b0a40270d00cc5635c65492c5b4c0ec60","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"8fd5d23b0a40270d00cc5635c65492c5b4c0ec60","tarball":"https://registry.npmjs.org/modus/-/modus-0.2.1.tgz","integrity":"sha512-CfNaYJsGzgTWAyJ9E5zlOk8LqlEix+OE5jQAqWtFnnScB/GrS1tY1LbF+D5w+RPswh/OQv0coW9BwNEO3YlOAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpvM44HnIUJ/qfDH7glf5y0FGHKesUgR5jOMkG4pDdiAiBK0GUZ7KObkstgpu/U+8aw2YXl8cE4Jgc4Gc4xsdizcw=="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.2":{"name":"modus","version":"0.2.2","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"72bf668d81ebb5d926ea79e5cb0ae4541dc1f795","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.2.2","_shasum":"b3e71b36e71f6a6e9d1d8684fbf6bade86dddf8d","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"b3e71b36e71f6a6e9d1d8684fbf6bade86dddf8d","tarball":"https://registry.npmjs.org/modus/-/modus-0.2.2.tgz","integrity":"sha512-vMcAi0vDZwAh5L9sbs4Fh9YbLT8XKVtDgjmGRsUDZ/J64e5evYKo//3xNk/Tz9sYCQg35r3dM2ld4MwhKnU2QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5unhFU5QQAV1/mu8Uat7GpvsCv+Te7Qp18B3H7MU+oAiEAwErJTmJf9wyI3B517R3OzAXu4EunPJlBt3xtrc1OMgk="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.3":{"name":"modus","version":"0.2.3","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"66feff2990b9d5f26aa31db93ffb8a94dbfb7599","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.2.3","_shasum":"45f6d6427329a17e919b747d32f7d6fc7f1852f1","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"45f6d6427329a17e919b747d32f7d6fc7f1852f1","tarball":"https://registry.npmjs.org/modus/-/modus-0.2.3.tgz","integrity":"sha512-KHc5yKgTQFPCpxaG9kAoVFWs6O7nQi14y1F/X3ZT7y7feV/KTg/Up9PkKCgFzNbdDdPX1BWa3+1uAx4qYOOlQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSwui5QElIoYTyFWwr1Ghjc5t/Zcn5DvTE7yym6R6DvgIgBJUVKXKy12us2SRsCDZVS1IxNBlPs3ske6jgs8cgr9U="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.3.0":{"name":"modus","version":"0.3.0","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"b77d24c71386ad0b8586543e10d66dc77520be66","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.3.0","_shasum":"cdfdb845103ead31becbf3305534225005e801bb","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"cdfdb845103ead31becbf3305534225005e801bb","tarball":"https://registry.npmjs.org/modus/-/modus-0.3.0.tgz","integrity":"sha512-U00p9cg4C5Hn8LOTwCUCDVCLL07O8Oiq7kBuWSjDDy4eaf99YeLPwmEQM+HQakLSGdq4wVBjD9FXyIqUtiy28A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvoIHjhixAk7EvblfRnhUOIqTiEBILGuDKV826vhBQtAiEAmS+/jeZhMKeduy6UvUclZfNvdtvrE3hgkaqID3gqFkY="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.3.1":{"name":"modus","version":"0.3.1","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2"},"gitHead":"0bb555b5cc5be3dc8706fb098ab825d341410a3f","bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.3.1","_shasum":"be4cf04a3e47f27fee160c46c7c449e0af2faedd","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"dist":{"shasum":"be4cf04a3e47f27fee160c46c7c449e0af2faedd","tarball":"https://registry.npmjs.org/modus/-/modus-0.3.1.tgz","integrity":"sha512-WKGn5UphecaFn2OhGtEREJXF3DBWvz0X0zvGHx94cVYjb2ycl7qBwiudnxxNqKFI2MnlecA1E6a4OcFjFjnDuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClrBdQOuioH5INE0BJv4FUgW7v5l8HtblxLgP5xhknyAiA8CjMjjlsSlXzKm3xlkLzff3ke1WJ1ln6FDDOUQvDKDw=="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.3.2":{"name":"modus","version":"0.3.2","keywords":["module","loader"],"description":"Modules for the web","repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"license":"MIT","main":"modus.js","author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bin":{"modus":"./bin/modus"},"scripts":{"test":"gulp mocha mochaPhantomJs","build":"gulp build"},"dependencies":{"commander":"~2.1.0","uglify-js":"~2.4.15","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.1","gulp":"^3.6.2","gulp-concat":"^2.2.0","gulp-mocha":"^0.4.1","gulp-mocha-phantomjs":"~0.1.5","gulp-replace":"^0.2.0","mocha":"^1.18.2","jquery":"~2.1.1","underscore":"~1.6.0","backbone":"~1.1.2","gulp-uglify":"~1.0.1","gulp-rename":"~1.2.0"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"homepage":"https://github.com/wartman/modus","_id":"modus@0.3.2","dist":{"shasum":"bc36b6a77bb46f043a55f994289865b54dcd28c8","tarball":"https://registry.npmjs.org/modus/-/modus-0.3.2.tgz","integrity":"sha512-99REyO8DFfXhmWYlL1x9wR59WIzT3GSPzER2ibQlYIWIdprik2VAXZ1iEFkhCiDUcOPR4qbsyXs4VVo1GT3qZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/vF/4yGJYWFRMfurwzE93MdNF55N402qcQyCtlEDSAQIgH19r2SmsMWL0f9csXTKWq3si2huXpO0Uo7THG5C2i7k="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"wartman","email":"faxmaster@gmail.com"},"maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"Modus\r\n=====\r\n\r\n**NOTE: Modus is very much in development.**\r\nThe API shouldn't change too much from this point forward, but be warned.\r\n\r\nModus is a JavaScript module loader for the web. It uses a Python and \r\nES6 inspired syntax, but can also load AMD modules.\r\n\r\nHere's an example of a simple `modus.module`:\r\n\r\n```javascript\r\nmodule(function (module) {\r\n    module.imports('foo', 'bar').from('.bar');\r\n    module.imports('View').from('backbone');\r\n\r\n    module.MyView = module.View.extend({\r\n        init: function () {\r\n            this.foo = module.foo;\r\n            this.bar = module.bar;\r\n        }\r\n    });\r\n});\r\n```\r\n\r\nGetting Started\r\n---------------\r\n\r\nIn your HTML file, add a script tag pointing at Modus and a 'data-main' attribute\r\nfor the main module in your project.\r\n\r\n```html\r\n<script src=\"dir/where/you/put/Modus.js\" data-main='path.to.main.module'></script>\r\n```\r\n\r\nAPI\r\n---\r\n\r\n### modus.__module__(*name*, *factory*, *options*)\r\n\r\nTypically, you'll define a module using `modus.module`. Modules can be\r\nnamed, or left anonymous and automatically assigned a name.\r\n\r\n#### Creating Modules\r\n\r\nInside the *factory* callback, `this` will be bound to the current module.\r\nDefining exports is as simple as assigning a property to `this`:\r\n\r\n```javascript\r\nmodus.module('example.module', function () {\r\n    this.SomeExport = 'foo';\r\n    this.SomeOtherExport = 'bar';\r\n});\r\n```\r\n\r\nThe first argument passed to the callback will also be bound to the current module, which\r\nis handy if you need to define something in another scope.\r\n\r\n```javascript\r\nmodus.module('example.module', function (module) {\r\n    module.SomeExport = 'foo';\r\n    (function () {\r\n        module.SomeOtherExport = 'bar';\r\n    })();\r\n});\r\n```\r\n\r\nFor brevity, `modus.module` can be aliased as `module` or `mod`. We'll be using `module`\r\nfor the rest of this document.\r\n\r\n```javascript\r\nmodule('example.module', function () {\r\n    this.SomeExport = 'foo';\r\n    this.SomeOtherExport = 'bar';\r\n});\r\n```\r\n\r\nAs a quick note, all of modus' global exports have a `noConflict` method you can use\r\nif they interfere with your project.\r\n\r\n```javascript\r\nvar module = function () {\r\n    return 'foo';\r\n};\r\n\r\n// modus gets included here, then:\r\nvar modusModule = module.noConflict();\r\n\r\nmodule();\r\n// --> 'foo'\r\n```\r\n\r\n#### Importing\r\n\r\nTo import something from a module, use the `this.imports(/* items */).from('module')` chain.\r\nThese imports will then be available as properties in `this`;\r\n\r\n```javascript\r\nmodule('example.otherModule', function () {\r\n    this.imports('SomeExport', 'SomeOtherExport').from('example.module');\r\n    console.log(this.SomeExport, this.SomeOtherExport); \r\n    // --> 'foo bar'\r\n});\r\n```\r\n\r\nIf you want to import everything from a module (or to import the `default` export), use the\r\n`imports(/* moduleName */).as('alias');` chain.\r\n\r\n```javascript\r\nmodule('example.otherModule', function () {\r\n    // You can name the import whatever you like. \r\n    this.imports('example.module').as('someRandomName');\r\n    console.log(this.someRandomName.SomeExport, this.someRandomName.someOtherExport);\r\n    // --> 'foo bar'\r\n});\r\n```\r\n\r\nThe above example holds unless the requested module has a `default` property, in which case\r\nthe `default` property will be imported instead.\r\n\r\n```javascript\r\nmodule('example.hasDefault', function () {\r\n    this.bar = 'bar';\r\n    this.default = 'foo';\r\n});\r\n\r\nmodule('example.otherModule', function () {\r\n    this.imports('example.hasDefault').as('def');\r\n    console.log(this.def, this.def.bar);\r\n    // --> 'foo undefined';\r\n});\r\n```\r\n\r\nRelative imports can be created by prefixing a module with a dot. For example:\r\n\r\n```javascript\r\nmodule('example.otherModule', function () {\r\n    // Imports from 'example.module':\r\n    this.imports('SomeExport', 'SomeOtherExport').from('.module');\r\n    console.log(this.SomeExport, this.SomeOtherExport); \r\n    // --> 'foo bar'\r\n});\r\n```\r\n\r\nThe number of dots you prefix the module name with will correspond to the number\r\nof levels you move up, relative to the *current module* (rather then the current namespace).\r\n\r\n```javascript\r\nmodule('app.foo.bar', function () {\r\n    this.imports('SomeExport').from('some.module');\r\n    // --> resolves to 'some/module.js'\r\n    this.imports('SomeExport').from('.some.module');\r\n    // Up one level from the current module:\r\n    // 'app.foo.<bar>'\r\n    // --> resolves to 'app/foo/some/module.js'\r\n    this.imports('SomeExport').from('..some.module');\r\n    // Up two levels.\r\n    // 'app.<foo.bar>';\r\n    // --> resolves to 'app/some/module.js';\r\n    // and so forth.\r\n});\r\n```\r\n\r\nYou can also use the URI syntax to load modules, which will work just like you expect. Both\r\nstyles can work side-by-side with no issues.\r\n\r\n```javascript\r\nmodule('app.foo.bar', function () {\r\n    this.imports('SomeExport').from('some/module');\r\n    // --> resolves to 'some/module.js'\r\n    this.imports('SomeExport').from('./some/module');\r\n    // Up one level from the current module:\r\n    // 'app.foo.<bar>'\r\n    // --> resolves to 'app/foo/some/module.js'\r\n    this.imports('SomeExport').from('../some/module');\r\n    // Up two levels.\r\n    // 'app.<foo.bar>';\r\n    // --> resolves to 'app/some/module.js';\r\n    this.imports('SomeExport').from('../../some/module');\r\n    // Up three levels.\r\n    // '<app.foo.bar>';\r\n    // --> resolves to 'some/module.js';\r\n    // and so forth.\r\n});\r\n```\r\n\r\n#### Asynchronous Modules\r\n\r\nIf you need to do something asynchronous (and you probably will at some point), you can\r\ntell modus to wait until your operation has completed before continuing along the module stack.\r\nAll you need to do is pass a second argument to the module factory (typically called \"done\", although this\r\ncan be whatever you'd like). If you've used a testing framework like Mocha, this should be a\r\nfamiliar pattern.\r\n\r\n```javascript\r\nmodule('tests.wait', function (module, done) {\r\n    module.foo = 'didn\\'t wait';\r\n    setTimeout(function () {\r\n        module.foo = 'waited';\r\n        // Enable this module, and continue enabling\r\n        // all dependent modules.\r\n        done();\r\n    }, 10);\r\n});\r\n\r\nmodule('tests.waiting', function () {\r\n    // This factory won't be run until the following\r\n    // import is enabled:\r\n    this.imports('foo').from('.wait');\r\n    console.log(this.foo);\r\n    // --> 'waited'\r\n});\r\n```\r\n\r\n#### AMD Integration\r\n\r\nUsing AMD modules is easy: just import the AMD module like you would anything else.\r\n\r\n```javascript\r\nmodule(function () {\r\n    this.imports('jquery').as('$');\r\n    this.$('#foo').html('This works!');\r\n    $('#fooBar').html('This too.');\r\n});\r\n```\r\n\r\nYou can even import properties from an AMD module. For example, here's what you can do\r\nwith Backbone:\r\n\r\n```javascript\r\nmodule(function () {\r\n    this.imports('View', 'Model').from('backbone');\r\n    this.Foo = this.View.extend({\r\n        // code\r\n    });\r\n});\r\n```\r\n\r\nThe above examples aren't actually functional. They need a little configuration\r\nfirst to let modus know where, for example, 'jquery' is hiding. For that, we need\r\n`modus.config`.\r\n\r\n### modus.__config__(*key*, *value*)\r\n\r\nPretty self explanatory.\r\n\r\n```javascript\r\nmodus.config({\r\n    // Set the root path:\r\n    root: 'scripts/',\r\n    // Map moduleNames to URIs:\r\n    maps: {\r\n        'jquery': 'bower_components/jquery/jquery.min.js'\r\n    },\r\n    // Map namespaces to URIs:\r\n    namespaceMaps: {\r\n        'foo': 'some/long/path/'\r\n    }\r\n});\r\n\r\nmodus.module('main', function () {\r\n    // The following will import from 'bower_components/jquery/jquery.min.js':\r\n    this.imports('jquery').as('$');\r\n    // The following will import from 'some/long/path/foo.js':\r\n    this.imports('bar').from('foo.bar');\r\n});\r\n```\r\n\r\n### modus.__main__(*config*, *factory*)\r\n\r\n'modus.main' is a shortcut for defining a main module. It will automatically register\r\na module with `modus.config('main')` as the module name, and you can set config options\r\nby passing an object as the first argument. This method should be used in the file that\r\n`data-main` points to.\r\n\r\n```javascript\r\nmodus.main({\r\n    root: 'foo/bar',\r\n    maps: {\r\n        'foo': 'bar'\r\n    }\r\n}, function () {\r\n    this.imports('App').from('foo.app');\r\n    this.App.start(); // or whatever you need.\r\n});\r\n```\r\n\r\n### modus.__Build__()\r\n\r\n**Note**: This area is probably the most unstable part of Modus at the moment.\r\nExpect changes.\r\n\r\nThis class is used when by modus' console app:\r\n\r\n```\r\n$ modus [src] [dest] <options>\r\n```\r\n\r\nThis allows you to compile a modus project into a single file. For more, type\r\n`$ modus --help` in your console.\r\n\r\n### modus.__addBuildEvent__(*moduleName*, *callback*)\r\n\r\nThere may be cases where you need to add some custom behavior when building a modus\r\napp. `addBuildEvent` can register an event that will be run for a single module or\r\nan event that will parse all of them. \r\n\r\n```javascript\r\nmodus.addBuildEvent(function (modules, output, build) {\r\n    // modules == an object containing all current `modus.Modules`.\r\n    // output == an object containing raw strings off all `modus.Modules`.\r\n    // build == the current instance of `modus.Build`\r\n\r\n    // So, you could do something like this:\r\n    for (var modName in output) {\r\n        var modRaw = output[modName];\r\n        modRaw += '/n/*this will be appended to the end*//n';\r\n        // Replace the previous output for 'modName'.\r\n        build.output(modName, modRaw);\r\n    }\r\n});\r\n```\r\n\r\nYou can register a build event in the same file as a modus module (so long as you don't place\r\nit inside the module callback), but a better option is to use build files. Simply register all\r\nthe build events you want in your app's config:\r\n\r\n```javascript\r\nmodus.config({\r\n    buildFiles: 'path/to/build/file'\r\n});\r\n// If you have many build files you can use an array of paths:\r\nmodus.config({\r\n    buildFiles: [\r\n        'path/to/build/file-one',\r\n        'path/to/build/file-two'\r\n    ]\r\n});\r\n```\r\n\r\nThe content of these build files won't be added to the compiled script.\r\n\r\nLicense Junk\r\n------------\r\nReleased under the [MIT license](LICENSE-MIT).\r\n\r\n","maintainers":[{"name":"wartman","email":"faxmaster@gmail.com"}],"time":{"modified":"2022-11-15T00:43:13.371Z","created":"2014-04-27T17:02:05.122Z","0.1.0":"2014-04-27T17:02:05.122Z","0.1.1":"2014-04-27T22:09:26.854Z","0.1.2":"2014-04-30T22:35:05.784Z","0.1.3":"2014-08-10T21:59:55.498Z","0.1.4":"2014-08-11T19:10:17.866Z","0.1.5":"2014-08-12T15:45:05.469Z","0.1.6":"2014-08-12T16:30:06.231Z","0.2.0":"2014-08-17T19:42:08.723Z","0.2.1":"2014-08-18T17:35:20.894Z","0.2.2":"2014-08-20T16:42:15.037Z","0.2.3":"2014-08-20T17:49:58.676Z","0.3.0":"2014-09-10T16:21:20.433Z","0.3.1":"2014-09-25T16:06:32.587Z","0.3.2":"2014-09-27T19:17:22.655Z"},"keywords":["module","loader"],"repository":{"type":"git","url":"https://github.com/wartman/modus.git"},"author":{"name":"Peter Wartman","email":"pwartman@wartfolio.com"},"bugs":{"url":"https://github.com/wartman/modus/issues"},"license":"MIT","readmeFilename":"readme.md","homepage":"https://github.com/wartman/modus"}