{"name":"brequire","version":"0.0.2","description":"Brings exact CommonJS (require, exports) functionality to the Browser.","author":{"name":"weepy"},"bin":{"brequire":"./bin/brequire"},"repository":"http://github.com/weepy/brequire","dependencies":{},"engines":{"node":">= 0.2.0"},"_id":"brequire@0.0.2","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"http://registry-npm.ywwl.com/brequire/download/brequire-0.0.2.tgz","shasum":"9b817b89569e2317079ccc96d6026ca3322c44ea","integrity":"sha512-Sh8uwV+d92sINQxGjh3XSzdq79U+twuuWfjDMiyS0wWc2RktrH3fiV7Xx9vqjhhDGdqACYtl18ch3wEvFQTq6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHWt5AGIfHPE3IFjFL4EgNhJokWQL+5j4nOJm0MZ5ZywIhAJJ5+Z3LuPWT98Ezg8ExD6vdYrg+iwgKE1INIwIBkTEN"}],"size":2703,"noattachment":false,"key":"/brequire/-/brequire-0.0.2.tgz"},"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":1299841236040,"maintainers":[{"name":"weepy","email":"jonahfox@gmail.com"}],"_cnpm_publish_time":1299841236040,"dist-tags":{"latest":"1.0.2"}}