{"name":"brequire","version":"1.0.0","description":"Dropin require polyfill for the browser.","main":"require.js","author":{"name":"weepy"},"license":"MIT","gitHead":"eb18d8598334b75933e9edf7fa27bb096c33ee0b","_id":"brequire@1.0.0","scripts":{},"_shasum":"d3b6edb75771c8daaca81e6710c2af00478c8993","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.0","_npmUser":{"name":"weepy","email":"jonahfox@gmail.com"},"dist":{"shasum":"d3b6edb75771c8daaca81e6710c2af00478c8993","tarball":"http://registry-npm.ywwl.com/brequire/download/brequire-1.0.0.tgz","integrity":"sha512-/11b622wUNSSyHf7WJ1CTfw8DRBKmq5GwVTCkvdflzLs4I4RuCIRyeQohonfWuwAs6VmQCIjWPsIdVODJQ/MHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZ/00hP/uiS+1W+IWW9G2IE9oEEUp32bwLEJaIg6OOrAiAFJLYVJQp9apCH6b+Aj20JfspCiIsa7vLf4AY9IrBdzw=="}],"size":2867,"noattachment":false,"key":"/brequire/-/brequire-1.0.0.tgz"},"maintainers":[{"name":"weepy","email":"jonahfox@gmail.com"}],"directories":{},"readme":"# require\n\nDropin `require` polyfill for the browser\n\nReally useful in development for when you don't want to crank up browserify.\n\nSuper simple.\n\nFully swappable with browserify and friends in production.\n\n# Installation\n\n1) Include the script and serve it (it won't work direct from the filesystem due to browser security)\n\n\n```\n<script src='require.js'></script>\n```\n\nor use it direct from rawgit\n\n```\n<script src='//rawgit.com/weepy/brequire/master/require.js'></script>\n```\n\n\n2) Code like a boss\n\n3) You can optionally include the PARSEJS library which will help point point any syntax errors in your code whilst\n\n# Compilers\n\nYou can add compilers for coffeescript, css, JSX or whatever in very simply by registering a handler like \n\n```\nrequire.compilers.css = function(text) {\n\n    var style = document.createElement('style');\n\tstyle.appendChild(document.createTextNode(text));\n\tdocument.head.appendChild(style);\n}\n```\n\nThis will allow you to include css on page like :\n\n```\nrequire(\"./style.css\")\n```\n\n\n# Production\n\nIt uses Sync XHR which is great for development, but not so much in production.\n\nForunately, you can swap out this library with browserify or similar in production.\n\n","publish_time":1435740655901,"_cnpm_publish_time":1435740655901,"dist-tags":{"latest":"1.0.2"}}