{"_id":"commonjs-require","_rev":"12-36378b54311b27d0f07f4764fe0859a7","name":"commonjs-require","description":"browser-side CommonJS require() function.","dist-tags":{"latest":"1.4.6"},"versions":{"1.1.3":{"name":"commonjs-require","version":"1.1.3","description":"browser-side CommonJS require() function.","main":"node.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"keywords":["commonjs","module","require","define"],"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"license":"MIT","bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"homepage":"https://github.com/efacilitation/commonjs-require","_id":"commonjs-require@1.1.3","dist":{"shasum":"104756dbcd362aaddf45f6338ea692890e8f4fe0","tarball":"https://registry.npmjs.org/commonjs-require/-/commonjs-require-1.1.3.tgz","integrity":"sha512-ZAaCxM905npQ1xeaGRZrKGZTMkoRqWI0Uu14SBOZOLxmb5+pbNcmAgnkH9M9h7ugZrear5AqSxiW4R4PEvhWNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv5IjD0Y4qJH+LeFp21LvLb27qcEv67WgE0MXj4EPrFQIhAOlmpgpbWm3fUl4zUbnK7WbCMU1ickkwIsSPIN2sCzqb"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"efacilitation","email":"team@efa-gmbh.com"},"maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}]},"1.2.5":{"name":"commonjs-require","version":"1.2.5","description":"browser-side CommonJS require() function.","main":"node.js","repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"keywords":["commonjs","module","require","define"],"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"license":"MIT","bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"homepage":"https://github.com/efacilitation/commonjs-require","_id":"commonjs-require@1.2.5","_shasum":"a73461c53cd06a155b530060ad2151560c3993c3","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"efacilitation","email":"team@efa-gmbh.com"},"maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}],"dist":{"shasum":"a73461c53cd06a155b530060ad2151560c3993c3","tarball":"https://registry.npmjs.org/commonjs-require/-/commonjs-require-1.2.5.tgz","integrity":"sha512-3/dMsVDiYKwgjuNfrtpfEqNtoxshKd10Hllq9GgeAJeS1d7re4QyMzBJDHwtw3HBJ+KH2FU+xselAWtbx+X3cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMLFClCrgocWXcg0k4HqxSIBhGzk78BELecYeM0+JMpAIhANQm+vW16QRFLqIBY/qdyIQz0K/xHZbW8oIRwzJQlmbS"}]}},"1.3.5":{"name":"commonjs-require","version":"1.3.5","description":"browser-side CommonJS require() function.","main":"node.js","repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"keywords":["commonjs","module","require","define"],"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"license":"MIT","bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"homepage":"https://github.com/efacilitation/commonjs-require","_id":"commonjs-require@1.3.5","_shasum":"c22cf41f21c8cb2090585c73666ef48fc9062fcd","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"efacilitation","email":"team@efa-gmbh.com"},"maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}],"dist":{"shasum":"c22cf41f21c8cb2090585c73666ef48fc9062fcd","tarball":"https://registry.npmjs.org/commonjs-require/-/commonjs-require-1.3.5.tgz","integrity":"sha512-5vLhReo4zxrUjAeazUyTcMB0CuaZtK9s1M8/RpOE6uNVk+YK6yqShGNkZznEGKlDz6BpIVSH0v0cZAEzcWbewA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZFnY/mKxuP588b1nqemfw0SJmnN2KsP+4v2LHvlF8qAiAb2xlD6cN9Ov35uO0VA66XWyVAoWuaRT7rlu7awo+Xow=="}]}},"1.4.5":{"name":"commonjs-require","version":"1.4.5","description":"browser-side CommonJS require() function.","main":"node.js","repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"keywords":["commonjs","module","require","define"],"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"license":"MIT","bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"homepage":"https://github.com/efacilitation/commonjs-require","_id":"commonjs-require@1.4.5","_shasum":"a32d9befdf44791ce04277bf6c227fbbd03658e0","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"efacilitation","email":"team@efa-gmbh.com"},"maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}],"dist":{"shasum":"a32d9befdf44791ce04277bf6c227fbbd03658e0","tarball":"https://registry.npmjs.org/commonjs-require/-/commonjs-require-1.4.5.tgz","integrity":"sha512-brMi9zcbMuLqEMr2VoY5/MjQw7T5NQ03QE71HWRme/DaoVLeb+P2DrU1+11WJJ6is5MubjTu+MTLCpYRUrvebA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC55SmRw0FZNnMFhvBHcIFT8Lplr9dPk9Iu3Z7VsjzfSQIgNpenxTttECff7T582MQJ8HWN3jkDZvbDB0oEywb6ldI="}]}},"1.4.6":{"name":"commonjs-require","version":"1.4.6","description":"browser-side CommonJS require() function.","main":"node.js","repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"keywords":["commonjs","module","require","define"],"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"license":"MIT","bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"gitHead":"9a1ff5018eaf55ba6cc496aad0ef8d39634bc0d5","homepage":"https://github.com/efacilitation/commonjs-require","_id":"commonjs-require@1.4.6","scripts":{},"_shasum":"caff5a7e5663321d8ad0308a1ab2ce1766ed2253","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"efacilitation","email":"team@efa-gmbh.com"},"maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}],"dist":{"shasum":"caff5a7e5663321d8ad0308a1ab2ce1766ed2253","tarball":"https://registry.npmjs.org/commonjs-require/-/commonjs-require-1.4.6.tgz","integrity":"sha512-XGD87IrOoJe2nTj63Nz/fPN4u8EkwotryR3spQamCR3jApSgHI6PhfFL/pS294soD/KqyCe9V3SJd6haUUAQ5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPHyVw0ygQmbRelny+hoW97M3ekXo++Adpdb+e5DuoUQIhANqELU2qZrY6eIeYIgVM2OJUSUrFobNdpmQ7mNlTnM98"}]}}},"readme":"# CommonJS Require\n\nbrowser-side [CommonJS require() function](http://wiki.commonjs.org/wiki/Modules/1.1.1#Require).\n\n## Usage\n\nAdd `commonjs-require.js` as script src to your site.\n\n\n### Example\n\n```html\n<script src=\"commonjs-require.js\"></script>\n<script>\nrequire.register(\"module\", function(exports, require, module){\n  /* Some Module content */\n  module.exports = \"content\"\n})\nalert(require('module'))\n</script>\n```\n\nThis will alert `content`\n\n\n## Automated wrapping into `require.register`\n\n* [gulp-wrap-commonjs](https://github.com/efacilitation/gulp-wrap-commonjs)\n* [grunt-wrap-commonjs](https://github.com/efacilitation/grunt-wrap-commonjs)\n\n\n## Why not browserify?\n\nBrowserify requires (scnr) that you use some magic AST/require.resolve mechanism to built your CommonJS package/files for the browser. This is really complex - especially if you have to bundle different files for different sections of your website, use dynamic requires or have circular dependencies.\n\n\n## API\n\n* `require(name)` — loads registered module and returns its `exports`.\n* `require.register(name, fn)` — registers new module. `fn` should have signature `exports, require, module`.\n* `require.list()` — lists all registered modules.\n\n## Node Module support\n\ncommonjs-require emulates the actual loading mechanism from Node.js in that it delegates all require() calls to\nModule._load() (Module is exposed via the \"module\" module). This improves support for modules which rely on the Node\nmodule system implementation (for example Mockery).\n\n### Module API\n\n* `Module._load(request, parent)` - does the actual module loading and instantiation\n* `Module._cache` - is the cache of loaded modules, can be cleared by assigning an empty object\n* `Module._resolveFilename` - determines the actual module id (e.g. adds \"index\" if its missing)\n\n## License\n\nMIT\n\n* Copyright (c) 2014 [efa GmbH](http://efa-gmbh.com) ([Initial Reason of Fork](https://github.com/brunch/commonjs-require-definition/pull/8))\n* Copyright (c) 2013-2014 [Paul Miller](http://paulmillr.com/)\n","maintainers":[{"name":"efacilitation","email":"team@efa-gmbh.com"}],"time":{"modified":"2022-06-13T19:31:41.482Z","created":"2014-04-13T16:48:49.791Z","1.1.3":"2014-04-13T16:48:49.791Z","1.2.5":"2014-04-22T09:50:31.241Z","1.3.5":"2014-04-23T07:53:15.660Z","1.4.5":"2014-04-23T08:52:02.264Z","1.4.6":"2014-09-01T13:49:21.498Z"},"homepage":"https://github.com/efacilitation/commonjs-require","keywords":["commonjs","module","require","define"],"repository":{"type":"git","url":"git@github.com:efacilitation/commonjs-require.git"},"author":{"name":"efa GmbH","email":"team@efa-gmbh.com"},"bugs":{"url":"https://github.com/efacilitation/commonjs-require/issues"},"license":"MIT","readmeFilename":"README.md"}