{"name":"brequire","version":"0.0.4","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"},"repository":{"type":"git","url":"git://github.com/weepy/brequire.git"},"dependencies":{"glob":">= 0.2.0"},"engines":{"node":">= 0.4.2"},"main":"./lib/brequire","_id":"brequire@0.0.4","_engineSupported":true,"_npmVersion":"1.0.1rc4","_nodeVersion":"v0.4.4","_defaultsLoaded":true,"dist":{"shasum":"7cb5f9fc36f43eb6becc2012186cf0e9002f11cb","tarball":"http://registry-npm.ywwl.com/brequire/download/brequire-0.0.4.tgz","integrity":"sha512-Ti0vuERG/+A9RogfvKUNp3WMseJdkm5qQsHP1+hO8zInPgv7p0W6iGIpnyrLWvrMzHkaSlLhqBWqeawp5PzjwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXf5ca/YddyhHRrXm+NKQm3COUB+R6TMsKUm4rFIv1yAiBpbrW3ssu8bpD0P0gZ22gDB/yLXIWQDxLc1mfrdh+7tw=="}],"size":9569,"noattachment":false,"key":"/brequire/-/brequire-0.0.4.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":1300183960373,"maintainers":[{"name":"weepy","email":"jonahfox@gmail.com"}],"_cnpm_publish_time":1300183960373,"dist-tags":{"latest":"1.0.2"}}