{"_id":"exposify","_rev":"330692","name":"exposify","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","dist-tags":{"latest":"0.5.0"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2021-06-07T02:46:09.000Z","created":"2014-01-17T22:06:10.641Z","0.5.0":"2015-10-26T00:17:41.609Z","0.4.3":"2015-06-16T22:03:54.246Z","0.4.2":"2015-06-16T21:59:02.845Z","0.4.1":"2015-05-15T18:51:24.937Z","0.4.0":"2015-04-17T16:49:09.169Z","0.3.0":"2015-01-20T02:33:10.251Z","0.1.5":"2015-01-14T00:43:24.174Z","0.2.0":"2014-06-21T22:51:37.450Z","0.1.4":"2014-04-18T17:29:24.756Z","0.1.3":"2014-01-21T21:34:42.736Z","0.1.2":"2014-01-21T15:08:33.518Z","0.1.1":"2014-01-17T22:12:40.699Z","0.1.0":"2014-01-17T22:06:10.641Z"},"users":{},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"versions":{"0.5.0":{"name":"exposify","version":"0.5.0","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"globo":"~1.1.0","map-obj":"~1.0.1","replace-requires":"~1.0.3","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"ac6b5e083835818131f0afe0c79e52b1ebda61cf","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.5.0","_shasum":"f92d0094c265b3f553e1fa456a03a1883d1059cc","_from":".","_npmVersion":"3.3.6","_nodeVersion":"2.2.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"f92d0094c265b3f553e1fa456a03a1883d1059cc","size":6585,"noattachment":false,"key":"/exposify/-/exposify-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.5.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1445818661609,"_cnpm_publish_time":1445818661609,"_hasShrinkwrap":false},"0.4.3":{"name":"exposify","version":"0.4.3","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"globo":"~1.0.0","has-require":"~1.1.0","map-obj":"~1.0.1","replace-requires":"~1.0.1","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"f066416bc812f049ed08a0983c9301039fd9e824","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.4.3","_shasum":"1963eb34c489f8bfba02dfd27fccfbc117384c9e","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"1963eb34c489f8bfba02dfd27fccfbc117384c9e","size":6564,"noattachment":false,"key":"/exposify/-/exposify-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.4.3.tgz"},"directories":{},"publish_time":1434492234246,"_cnpm_publish_time":1434492234246,"_hasShrinkwrap":false},"0.4.2":{"name":"exposify","version":"0.4.2","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"~4.0.0","globo":"~1.0.0","has-require":"~1.1.0","map-obj":"~1.0.1","replace-requires":"~1.0.1","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"42034c83634180f36585ff9d2f7a298872fe4361","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.4.2","_shasum":"dc235f2b7ba677792c3c8bb9857f8252331f2924","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"dc235f2b7ba677792c3c8bb9857f8252331f2924","size":6580,"noattachment":false,"key":"/exposify/-/exposify-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.4.2.tgz"},"directories":{},"publish_time":1434491942845,"_cnpm_publish_time":1434491942845,"_hasShrinkwrap":false},"0.4.1":{"name":"exposify","version":"0.4.1","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"~4.0.0","has-require":"~1.1.0","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"0728a4058e166411ba9f4d4e09fbb303d9704183","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.4.1","_shasum":"b7d4a5018174e5817884c405c37da11e21af84c1","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"b7d4a5018174e5817884c405c37da11e21af84c1","size":7367,"noattachment":false,"key":"/exposify/-/exposify-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.4.1.tgz"},"directories":{},"publish_time":1431715884937,"_cnpm_publish_time":1431715884937,"_hasShrinkwrap":false},"0.4.0":{"name":"exposify","version":"0.4.0","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"~4.0.0","has-require":"~1.1.0","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"b192cf6bf44cc26f340afe48ecc63e3cbedf43ed","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.4.0","_shasum":"d139542bd56e42aec2be22b2240b85f4b3bf562d","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"d139542bd56e42aec2be22b2240b85f4b3bf562d","size":6875,"noattachment":false,"key":"/exposify/-/exposify-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.4.0.tgz"},"directories":{},"publish_time":1429289349169,"_cnpm_publish_time":1429289349169,"_hasShrinkwrap":false},"0.3.0":{"name":"exposify","version":"0.3.0","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"~2.3.0","has-require":"~1.1.0","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~8.1.1"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"e7fc632a70250065e86ff702b246984f731b3a1e","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.3.0","_shasum":"c62065fd63d2b6fefa8f6bd3b2e8dcacfae11671","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"c62065fd63d2b6fefa8f6bd3b2e8dcacfae11671","size":6860,"noattachment":false,"key":"/exposify/-/exposify-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.3.0.tgz"},"directories":{},"publish_time":1421721190251,"_cnpm_publish_time":1421721190251,"_hasShrinkwrap":false},"0.1.5":{"name":"exposify","version":"0.1.5","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"~2.3.0","has-require":"~1.1.0","through2":"~0.4.0","transformify":"~0.1.1"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"gitHead":"b81e4e161f71407b4bc53729ccf33fcedff8e6dd","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.5","_shasum":"6a5b56db859070c2e329ccd40e55191ddb57e3d6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"dist":{"shasum":"6a5b56db859070c2e329ccd40e55191ddb57e3d6","size":6475,"noattachment":false,"key":"/exposify/-/exposify-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.5.tgz"},"directories":{},"publish_time":1421196204174,"_cnpm_publish_time":1421196204174,"_hasShrinkwrap":false},"0.2.0":{"name":"exposify","version":"0.2.0","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"transformify":"~0.1.1","through2":"~0.4.0","detective":"~2.3.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.2.0","dist":{"shasum":"47d86ce3e08e3ffd603936dcd5e5e6311c32a612","size":6620,"noattachment":false,"key":"/exposify/-/exposify-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1403391097450,"_cnpm_publish_time":1403391097450,"_hasShrinkwrap":false},"0.1.4":{"name":"exposify","version":"0.1.4","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"transformify":"~0.1.1","through2":"~0.4.0","detective":"~2.3.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.4","dist":{"shasum":"e4d188b30bdb671ab842ead9aeb59d4a5eb28386","size":6471,"noattachment":false,"key":"/exposify/-/exposify-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1397842164756,"_cnpm_publish_time":1397842164756,"_hasShrinkwrap":false},"0.1.3":{"name":"exposify","version":"0.1.3","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"transformify":"~0.1.1","through2":"~0.4.0","detective":"~2.3.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","browserify-transform","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.3","dist":{"shasum":"658a3ba846d428c689b30f7c561e5b612085b979","size":6488,"noattachment":false,"key":"/exposify/-/exposify-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1390340082736,"_cnpm_publish_time":1390340082736,"_hasShrinkwrap":false},"0.1.2":{"name":"exposify","version":"0.1.2","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"transformify":"~0.1.1","through2":"~0.4.0","detective":"~2.3.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.2","dist":{"shasum":"e0dc018eb591cd32593bdeaae0332a63cc8e3c4c","size":6484,"noattachment":false,"key":"/exposify/-/exposify-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1390316913518,"_cnpm_publish_time":1390316913518,"_hasShrinkwrap":false},"0.1.1":{"name":"exposify","version":"0.1.1","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"git://github.com/thlorenz/node-detective#parse-opts","transformify":"~0.1.1","through2":"~0.4.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":["browserify","transform","expose","window","global","require","shim"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.1","dist":{"shasum":"99c015e293efcf71a68c50e7ed42213252d6ce30","size":6486,"noattachment":false,"key":"/exposify/-/exposify-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1389996760699,"_cnpm_publish_time":1389996760699,"_hasShrinkwrap":false},"0.1.0":{"name":"exposify","version":"0.1.0","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/exposify.git"},"homepage":"https://github.com/thlorenz/exposify","dependencies":{"detective":"git://github.com/thlorenz/node-detective#parse-opts","transformify":"~0.1.1","through2":"~0.4.0"},"devDependencies":{"tap":"~0.4.3","browserify":"~3.20.0"},"keywords":[],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"},"engine":{"node":">=0.8"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"_id":"exposify@0.1.0","dist":{"shasum":"6b01b7a4448c69b3ede522e693a18cf700bbb407","size":6443,"noattachment":false,"key":"/exposify/-/exposify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exposify/download/exposify-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"},{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1389996370641,"_cnpm_publish_time":1389996370641,"_hasShrinkwrap":false}},"readme":"# exposify [![build status](https://secure.travis-ci.org/thlorenz/exposify.png)](http://travis-ci.org/thlorenz/exposify)\n\nbrowserify transform that exposes globals added via a script tag as modules so they can be required.\n\n```html\n<!-- index.html -->\n<head>\n  <script type=\"text/javascript\" src=\"http://cdnjs.cloudflare.com/ajax/libs/three.js/r61/three.min.js\"></script>\n  <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\n  [..]\n```\n\n```js\n// main.js\nvar $ = require('jquery')\n  , THREE = require('three')\n\nconsole.log('THREE revision: ', THREE.REVISION);\nconsole.log('jquery version: ', $().jquery);\n```\n\n#### Building via JavaScript\n\n```js\nvar browserify = require('browserify');\n\n// configure what we want to expose\nvar exposeConfig = { expose: { jquery: '$', three: 'THREE' } };\n\nbrowserify()\n  .require(require.resolve('./main'), { entry: true })\n  .transform('exposify', exposeConfig)\n  .bundle({ debug: true })\n  .pipe(fs.createWriteStream(path.join(__dirname, 'bundle.js'), 'utf8'))\n```\n\n#### Building via Commandline\n\nUsing the `EXPOSIFY_CONFIG` environment variable:\n\n```sh\nEXPOSIFY_CONFIG='{ \"jquery\": \"$\", \"three\": \"THREE\" }' browserify --debug -t exposify main.js > bundle.js\n```\n\nOr using a Browserify transform option:\n\n```sh\nbrowserify --debug -t [ exposify --expose [ --jquery $ --three THREE ] ] main.js > bundle.js\n```\n\nOr use [browserify-shim](https://github.com/thlorenz/browserify-shim) which can [configure exposify in `package.json`](https://github.com/thlorenz/browserify-shim#a-expose-global-variables-via-global) among other features.\n\n## Installation\n\n    npm install exposify\n\n## API\n\n<!-- START docme generated API please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN docme TO UPDATE -->\n\n<div>\n<div class=\"jsdoc-githubify\">\n<section>\n<article>\n<div class=\"container-overview\">\n<dl class=\"details\">\n</dl>\n</div>\n<dl>\n<dt>\n<h4 class=\"name\" id=\"exposify::config\"><span class=\"type-signature\"></span>exposify::config<span class=\"type-signature\"></span></h4>\n</dt>\n<dd>\n<div class=\"description\">\n<p>The config which is used by exposify to determine which require statemtents to replace and how.\nYou need to set this or provide it via the <code>EXPOSIFY_CONFIG</code> environment variable.</p>\n<pre><code class=\"lang-js\"> var b = browserify();\n// setting via transform argument\nb.transform('exposify', { expose: { jquery: '$', three: 'THREE' } });</code></pre>\n<pre><code class=\"lang-js\"> // setting from javascript\nexposify.config = { jquery: '$', three: 'THREE' };</code></pre>\n<pre><code class=\"lang-sh\"> # setting from command line\nEXPOSIFY_CONFIG='{ &quot;jquery&quot;: &quot;$&quot;, &quot;three&quot;: &quot;THREE&quot; }' browserify -t exposify ...</code></pre>\n</div>\n<dl class=\"details\">\n<dt class=\"tag-source\">Source:</dt>\n<dd class=\"tag-source\"><ul class=\"dummy\">\n<li>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js\">index.js</a>\n<span>, </span>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js#L33\">lineno 33</a>\n</li>\n</ul></dd>\n</dl>\n</dd>\n<dt>\n<h4 class=\"name\" id=\"exposify::expose\"><span class=\"type-signature\"></span>exposify::expose<span class=\"type-signature\"></span></h4>\n</dt>\n<dd>\n<div class=\"description\">\n<p>Exposes the expose function that operates on a string</p>\n</div>\n<dl class=\"details\">\n<dt class=\"tag-source\">Source:</dt>\n<dd class=\"tag-source\"><ul class=\"dummy\">\n<li>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js\">index.js</a>\n<span>, </span>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js#L78\">lineno 78</a>\n</li>\n</ul></dd>\n</dl>\n</dd>\n<dt>\n<h4 class=\"name\" id=\"exposify::filePattern\"><span class=\"type-signature\"></span>exposify::filePattern<span class=\"type-signature\"></span></h4>\n</dt>\n<dd>\n<div class=\"description\">\n<p>Regex pattern of files whose content is exposified</p>\n</div>\n<dl class=\"details\">\n<dt class=\"tag-source\">Source:</dt>\n<dd class=\"tag-source\"><ul class=\"dummy\">\n<li>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js\">index.js</a>\n<span>, </span>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js#L71\">lineno 71</a>\n</li>\n</ul></dd>\n</dl>\n</dd>\n</dl>\n<dl>\n<dt>\n<h4 class=\"name\" id=\"exposify\"><span class=\"type-signature\"></span>exposify<span class=\"signature\">(file, <span class=\"optional\">opts</span>)</span><span class=\"type-signature\"> &rarr; {TransformStream}</span></h4>\n</dt>\n<dd>\n<div class=\"description\">\n<p>browserify transform which exposes globals as modules that can be required.</p>\n</div>\n<h5>Parameters:</h5>\n<table class=\"params\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Argument</th>\n<th class=\"last\">Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td class=\"name\"><code>file</code></td>\n<td class=\"type\">\n<span class=\"param-type\">string</span>\n</td>\n<td class=\"attributes\">\n</td>\n<td class=\"description last\"><p>file whose content is to be transformed</p></td>\n</tr>\n<tr>\n<td class=\"name\"><code>opts</code></td>\n<td class=\"type\">\n<span class=\"param-type\">Object</span>\n</td>\n<td class=\"attributes\">\n&lt;optional><br>\n</td>\n<td class=\"description last\"><p>(exposify config), defaults to exposify.config or $EXPOSIFY_CONFIG</p></td>\n</tr>\n</tbody>\n</table>\n<dl class=\"details\">\n<dt class=\"tag-source\">Source:</dt>\n<dd class=\"tag-source\"><ul class=\"dummy\">\n<li>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js\">index.js</a>\n<span>, </span>\n<a href=\"https://github.com/thlorenz/exposify/blob/master/index.js#L9\">lineno 9</a>\n</li>\n</ul></dd>\n</dl>\n<h5>Returns:</h5>\n<div class=\"param-desc\">\n<p>transform that replaces require statements found in the code with global assigments</p>\n</div>\n<dl>\n<dt>\nType\n</dt>\n<dd>\n<span class=\"param-type\">TransformStream</span>\n</dd>\n</dl>\n</dd>\n</dl>\n</article>\n</section>\n</div>\n\n*generated with [docme](https://github.com/thlorenz/docme)*\n</div>\n<!-- END docme generated API please keep comment here to allow auto update -->\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/thlorenz/exposify","bugs":{"url":"https://github.com/thlorenz/exposify/issues"},"license":{"type":"MIT","url":"https://github.com/thlorenz/exposify/blob/master/LICENSE"}}