{"_id":"kitno-loader","_rev":"28-68c561546d0bff53d10234603bc34ae1","name":"kitno-loader","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.0":{"name":"kitno-loader","version":"0.0.0","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"}],"license":"MIT","gitHead":"9da9cb1612a714fc5081e00e99c6931cf4ab8968","_id":"kitno-loader@0.0.0","_shasum":"e01335968ebd6f98cf0a52b7c2b8355d081b3ac9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"juanca","email":"juanca.med@gmail.com"},"dist":{"shasum":"e01335968ebd6f98cf0a52b7c2b8355d081b3ac9","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.0.tgz","integrity":"sha512-MyCLGjfDrtx1QshuEsduLAeElY8mig6yp6EfrWKrNlEPFykJGDzhP5jdU2QF6EAVT2cRA2e/CPheslHsLI9eZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSTRlSFWOT9xG2aZVPn9dLGaHrBHBoYMUtDQo5i46vRgIgMYQI9LMq8n4mZjqm/KPRPM53EhqZH07TueXKQlbe2cA="}]},"maintainers":[{"name":"juanca","email":"juanca.med@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.0.tgz_1479420278617_0.8923164689913392"},"directories":{}},"0.0.1":{"name":"kitno-loader","version":"0.0.1","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"scripts":{"lint":"eslint '**/**/*.js'","lint-fix":"npm run lint -- --fix","test":"jasmine test/**/*-spec.js","test:debug":"devtool node_modules/jasmine/bin/jasmine.js test/**/*-spec.js"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"license":"MIT","dependencies":{"glob":"^7.1.1"},"devDependencies":{"devtool":"^2.3.0","eslint":"^3.7.0","eslint-config-airbnb":"^13.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.7.1","jasmine":"^2.5.2"},"gitHead":"d662ca522ab0379a1bfe89f34c468e2335ffafa3","bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"},"homepage":"https://github.com/mavenlink/kitno-loader#readme","_id":"kitno-loader@0.0.1","_shasum":"ae06a39461b4b66bef19b739aab0b6963ae94024","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"juanca","email":"juanca.med@gmail.com"},"dist":{"shasum":"ae06a39461b4b66bef19b739aab0b6963ae94024","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.1.tgz","integrity":"sha512-cSg6t/HpIJbZ8kTFt57pGkyFP6Cnu2GPo9DTiDH9ZqrKrAaLNeebd8vGzt/n+WeHfN/YaeE22MhLKwX/nPt9Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAO1zvkKujGNXdTjBmWBun+4XDf2Oe5jZZFX3osnyyOwAiEAonvElkD6IDx+1eu1ywcaz6yP/bY03YC9bd8qk+auBsY="}]},"maintainers":[{"name":"juanca","email":"juanca.med@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.1.tgz_1480640692742_0.4180775983259082"},"directories":{}},"0.0.3":{"name":"kitno-loader","version":"0.0.3","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"scripts":{"lint":"eslint '**/**/*.js'","lint-fix":"npm run lint -- --fix","test":"jasmine test/**/*-spec.js","test:debug":"devtool node_modules/jasmine/bin/jasmine.js test/**/*-spec.js"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"license":"MIT","dependencies":{"glob":"^7.1.1","loader-utils":"^0.2.11"},"devDependencies":{"devtool":"^2.3.0","eslint":"^3.7.0","eslint-config-airbnb":"^13.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.7.1","jasmine":"^2.5.2"},"gitHead":"9218cfec10b6bdbf15a65910176d3fe7e6a3cf64","bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"},"homepage":"https://github.com/mavenlink/kitno-loader#readme","_id":"kitno-loader@0.0.3","_shasum":"f70efd4fd1898140da7fd1b66f853299d82cf467","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"juanca","email":"juanca.med@gmail.com"},"dist":{"shasum":"f70efd4fd1898140da7fd1b66f853299d82cf467","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.3.tgz","integrity":"sha512-9a9RV2pdfg/Ky/l4Y4BbF1UeWoChx68onvaJWEx7KElHe+rJnrBX/A0RKtfg4DwIbD02UBLLYKW/pLkPJcaVYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYt6kRE/AdJlWpvbzTjQ10AuMCEeP7MVg3C4TinxFcuQIge8m5RzGEBKDY3v98WPgUqO59B/8sIqKKT+SnwGPGOn4="}]},"maintainers":[{"name":"juanca","email":"juanca.med@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.3.tgz_1480889109944_0.6808997129555792"},"directories":{}},"0.0.4-a":{"name":"kitno-loader","version":"0.0.4-a","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"scripts":{"lint":"eslint '**/**/*.js'","lint-fix":"npm run lint -- --fix","test":"jasmine test/**/*-spec.js","test:debug":"devtool node_modules/jasmine/bin/jasmine.js test/**/*-spec.js"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Cassandra Cruz","email":"celkamada@gmail.com"},{"name":"Catherine Meyers","email":"ccmeyers@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"license":"MIT","dependencies":{"glob":"^7.1.1","loader-utils":"^0.2.11"},"devDependencies":{"devtool":"^2.3.0","eslint":"^3.7.0","eslint-config-airbnb":"^13.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.7.1","jasmine":"^2.5.2"},"bin":{"kitno-map":"bin/globalToPathMapper.js"},"gitHead":"479be308fd06ce97daa7c70cf8442a608ba3d1b7","bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"},"homepage":"https://github.com/mavenlink/kitno-loader#readme","_id":"kitno-loader@0.0.4-a","_shasum":"2e253a835ef369e19a533cafb4e0696f5d0c8e7d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"ccmeyers","email":"ccmeyers@gmail.com"},"dist":{"shasum":"2e253a835ef369e19a533cafb4e0696f5d0c8e7d","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.4-a.tgz","integrity":"sha512-2txh9TUiIXODXek2KpXKaLcokkswcsL2VYwD5X0AEp7laXwnMI5gJEJkJ4JbTU6cv7UctIpYCon4J8GRE8YDDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtc3EAlZFXvVWYMb/OPz5A9EDMEml19Xp+2mDGU88V8gIgGJERhnx+viV6FVdg7TDeVDuf+UExBQo79Hd708saycY="}]},"maintainers":[{"name":"ccmeyers","email":"ccmeyers@gmail.com"},{"name":"celkamada","email":"celkamada@gmail.com"},{"name":"jrolfs","email":"jamie.rolfs@gmail.com"},{"name":"juanca","email":"juanca.med@gmail.com"},{"name":"naganowl","email":"naganowl@gmail.com"},{"name":"naomiajacobs","email":"naomiajacobs@gmail.com"},{"name":"racerpeter","email":"peter@pcfry.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.4-a.tgz_1481844119915_0.02871639933437109"},"directories":{}},"0.0.5":{"name":"kitno-loader","version":"0.0.5","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"scripts":{"lint":"eslint '**/**/*.js'","lint-fix":"npm run lint -- --fix","test":"jasmine test/**/*-spec.js","test:debug":"devtool node_modules/jasmine/bin/jasmine.js test/**/*-spec.js"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Cassandra Cruz","email":"celkamada@gmail.com"},{"name":"Catherine Meyers","email":"ccmeyers@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"license":"MIT","dependencies":{"glob":"^7.1.1","loader-utils":"^0.2.11"},"devDependencies":{"devtool":"^2.3.0","eslint":"^3.7.0","eslint-config-airbnb":"^13.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.7.1","jasmine":"^2.5.2"},"bin":{"kitno-map":"bin/globalToPathMapper.js"},"gitHead":"cb64d4efebbb28fe729090f4105b309f30f3d998","bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"},"homepage":"https://github.com/mavenlink/kitno-loader#readme","_id":"kitno-loader@0.0.5","_shasum":"69d539672e47fbbf75951d113856139375a2b801","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"juanca","email":"juanca.med@gmail.com"},"dist":{"shasum":"69d539672e47fbbf75951d113856139375a2b801","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.5.tgz","integrity":"sha512-j/PeSCjTJwxItgNnzPG6NV5UQxD0JuZUbztpHUez854UgWrp6d9hZcXJy86Knuo8fsNnZ1nIhdk/kfeyyhbEIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs0wmHp7v+51tPuTpv+9kxqXCiF0+51mYhJHrUkdfY5AIhAMGC9A0fQF/ssPblLy/wThGAM5zi7v7Jdsa1RJMxRfrJ"}]},"maintainers":[{"name":"ccmeyers","email":"ccmeyers@gmail.com"},{"name":"celkamada","email":"celkamada@gmail.com"},{"name":"juanca","email":"juanca.med@gmail.com"},{"name":"naganowl","email":"naganowl@gmail.com"},{"name":"naomiajacobs","email":"naomiajacobs@gmail.com"},{"name":"racerpeter","email":"peter@pcfry.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.5.tgz_1486073637022_0.554175574798137"},"directories":{}},"0.0.6":{"name":"kitno-loader","version":"0.0.6","description":"Killing in the namespace of. Stop using the global namespace in favor of modules.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"scripts":{"lint":"eslint '**/**/*.js'","lint-fix":"npm run lint -- --fix","test":"jasmine test/**/*-spec.js","test:debug":"devtool node_modules/jasmine/bin/jasmine.js test/**/*-spec.js"},"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Cassandra Cruz","email":"celkamada@gmail.com"},{"name":"Catherine Meyers","email":"ccmeyers@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"license":"MIT","dependencies":{"glob":"^7.1.1","loader-utils":"^0.2.11"},"devDependencies":{"devtool":"^2.3.0","eslint":"^3.7.0","eslint-config-airbnb":"^13.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.7.1","jasmine":"^2.5.2"},"bin":{"kitno-map":"bin/globalToPathMapper.js"},"gitHead":"2ec86f61c4a1ce91b820e769322d8e625189b073","bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"},"homepage":"https://github.com/mavenlink/kitno-loader#readme","_id":"kitno-loader@0.0.6","_shasum":"f9535e63623355dd691a88d487a2bad4ec2a4fd6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"naganowl","email":"naganowl@gmail.com"},"dist":{"shasum":"f9535e63623355dd691a88d487a2bad4ec2a4fd6","tarball":"https://registry.npmjs.org/kitno-loader/-/kitno-loader-0.0.6.tgz","integrity":"sha512-IvR7yZPa1CovE2XHgT/dIJaxVU6VK71TuTjd4mReRC08lBXJG2m+uhLcarrmKXtOgkY9E4PwkMrrIkAOli2bbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCa9GrdwVh+JRsEFd3Pixk3LVP44SlzHBumAV6pAas9AIhAMng2LBXL5YvWDCiXvA2Apk+PkX6oC03MHWCT9sSIx0I"}]},"maintainers":[{"name":"ccmeyers","email":"ccmeyers@gmail.com"},{"name":"celkamada","email":"celkamada@gmail.com"},{"name":"juanca","email":"juanca.med@gmail.com"},{"name":"naganowl","email":"naganowl@gmail.com"},{"name":"naomiajacobs","email":"naomiajacobs@gmail.com"},{"name":"racerpeter","email":"peter@pcfry.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kitno-loader-0.0.6.tgz_1486173486343_0.4739187879022211"},"directories":{}}},"readme":"# kitno-loader\n\nTwo-pass loader for Webpack bundling.\nIn-memory rewrites of global namespace usages into CommonJS require expressions.\nUseful for migrating a Rails project to CommonJS module bundling.\nInspired from the original [Killing In The Namespace Of](https://github.com/mavenlink/killing-in-the-namespace-of).\n\n### First Pass\n\n- Specify interesting namespaces to identify\n- Collect namespace -> file path\n\n```\n./bin/globalToPathMapper.js app/**/*.coffee\n```\n\n### Second Pass\n\n- For each namespace, use JavaScript module\n  - `require`/`import` at the top of the file\n  - local variable used for namespace (avoid collision)\n\n\n## How-to-use\n\nGiven the complexity of globals -> locals problem and the desired simplicity of a solution, codebase massaging is required to effectively run `kitno-loader`.\n\n1. All code references in comments should be in enclosed with backticks\n2. Any existing exports of globals should be deleted\n3. Any existing JavaScript initialization code (in script tags) should be its own entry file. Any dependencies from the Rails environment should be serialized on the `window` via a script tag. \n","maintainers":[{"email":"juanca.med@gmail.com","name":"juanca"},{"email":"celkamada@gmail.com","name":"celkamada"},{"email":"peter@pcfry.com","name":"racerpeter"},{"email":"ccmeyers@gmail.com","name":"ccmeyers"}],"time":{"modified":"2022-06-19T08:52:51.649Z","created":"2016-11-17T22:04:38.847Z","0.0.0":"2016-11-17T22:04:38.847Z","0.0.1":"2016-12-02T01:04:53.426Z","0.0.3":"2016-12-04T22:05:11.796Z","0.0.4-a":"2016-12-15T23:22:00.142Z","0.0.5":"2017-02-02T22:13:58.909Z","0.0.6":"2017-02-04T01:58:08.138Z"},"contributors":[{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},{"name":"Cassandra Cruz","email":"celkamada@gmail.com"},{"name":"Catherine Meyers","email":"ccmeyers@gmail.com"},{"name":"Alan Wong","email":"naganowl@gmail.com"}],"author":{"name":"Juan Carlos Medina","email":"juanca.med@gmail.com"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/mavenlink/kitno-loader#readme","repository":{"type":"git","url":"git+https://github.com/mavenlink/kitno-loader.git"},"bugs":{"url":"https://github.com/mavenlink/kitno-loader/issues"}}