{"name":"brequire","version":"0.0.3","description":"Use CommonJS (require, exports) functionality in the browser","author":{"name":"weepy"},"licenses":[{"type":"MIT","url":"http://github.com/weepy/brequire/raw/master/LICENSE"}],"directories":{"lib":"./lib","bin":"./bin"},"repository":{"type":"git","url":"git://github.com/weepy/brequire.git"},"dependencies":{"glob":">= 0.2.0"},"engines":{"node":">= 0.4.2","npm":">= 0.3"},"main":"./lib/brequire","_id":"brequire@0.0.3","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.2","bin":{"brequire":"bin/brequire","install":"bin/install"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"2a1a8b928d717c4b98eeb783e02b86d6fd7132f1","tarball":"http://registry-npm.ywwl.com/brequire/download/brequire-0.0.3.tgz","integrity":"sha512-2xPnllsVzByau09US4M5XctLtjP1Cv29lkQh90M3fCfyls4uWXtDzJm4RWGGs3oNfClpy3nKH8qiG0qcNO1e4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/vx1BG9veCmxix1FzpgeOf458HLKQrwp8baBizf3sAwIgJi/huTB492ACp6yncNXPAazqtisqtNXcNvr+hQmFDdg="}],"size":5827,"noattachment":false,"key":"/brequire/-/brequire-0.0.3.tgz"},"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"}}