{"name":"brequire","version":"1.0.2","repo":"https://github.com/weepy/brequire","description":"Dropin require polyfill for the browser. Also supports compilation, e.g. babel, css, JSX","main":"require.js","author":{"name":"weepy"},"license":"MIT","gitHead":"779fa03b211d470e4893ff59b53591cb630de66e","_id":"brequire@1.0.2","scripts":{},"_shasum":"06d00b88ce4f0e9ebe3512af633e2680e2f3ab49","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.0","_npmUser":{"name":"weepy","email":"jonahfox@gmail.com"},"dist":{"shasum":"06d00b88ce4f0e9ebe3512af633e2680e2f3ab49","tarball":"http://registry-npm.ywwl.com/brequire/download/brequire-1.0.2.tgz","integrity":"sha512-8aX5CWXPDk37/TgH/nYrRWzxHvUGp8YWI1GEuqr9BocZofR61ftlrRf60smpzN7Jj4sV6u+kylM4Bw5LKqdHiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEaMKNrn/uhnylSsRYqa/HHNj5/rwofH1ahq3o7I7bWwAiBs2SYSBSEqBjjEVB7wz1J6so5DjF6fZmne0KwLerANRg=="}],"size":86540,"noattachment":false,"key":"/brequire/-/brequire-1.0.2.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":1435860789716,"_cnpm_publish_time":1435860789716,"dist-tags":{"latest":"1.0.2"}}