{"_id":"scopify","_rev":"13-908a2879c47a5c361a84045bc3f13027","name":"scopify","description":"scope browserify's require away","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"scopify","description":"scope browserify's require away","version":"0.1.0","homepage":"https://github.com/dodo/node-scopify","author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"},"main":"scopify.js","engines":{"node":"0.4.x"},"keywords":["browserify","plugin","browser","scope","bundle"],"_npmUser":{"name":"dodo","email":"dodo@blacksec.org"},"_id":"scopify@0.1.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.101","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"1a834d7b4a6470a45f3c4777ba543a19ba9d060a","tarball":"https://registry.npmjs.org/scopify/-/scopify-0.1.0.tgz","integrity":"sha512-vmKwwu2Pj3vugV3V/m9lQ/qh/ZEaFwJipw5OPMDMAvyNKVmRGTUYH5uRCxB7HcfZiItpv5SpRKnoET2X6xp+pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC60dq4je8bPHX/sIwPKtC+zsmvz30zSVuugrH/LgUHpwIhALRlJRI8a12Wql1fFTlEvp5jbYEVceAZ/gfhqyKOSohL"}]},"maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}]},"0.1.1":{"name":"scopify","description":"scope browserify's require away","version":"0.1.1","homepage":"https://github.com/dodo/node-scopify","author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"},"main":"scopify.js","engines":{"node":">= 0.4.x"},"keywords":["browserify","plugin","browser","scope","bundle"],"_npmUser":{"name":"dodo","email":"dodo@blacksec.org"},"_id":"scopify@0.1.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.101","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"2f5eca0741e4c45831be7a28ca07c34b7b6aacc1","tarball":"https://registry.npmjs.org/scopify/-/scopify-0.1.1.tgz","integrity":"sha512-BLcolWDLugcHpbnZBCey0/JeK1HfkG4dQU8KC07ncWiw9ygbfu0RfOEUxjwSN7vOAwpAzrwkCVzs0I9jRNLB3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaDmo99C53VlU59QajSl3jaHH57hxPB+cdreOHc3chuAiEA2h2mPa1wYbtyLyoMJJ6PfWUFu3j8CYMT9RR/pOy92b8="}]},"maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}]},"0.2.0":{"name":"scopify","description":"scope browserify's require away","version":"0.2.0","homepage":"https://github.com/dodo/node-scopify","author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"},"main":"scopify.js","engines":{"node":">= 0.4.x"},"keywords":["browserify","plugin","browser","scope","bundle"],"_npmUser":{"name":"dodo","email":"dodo@blacksec.org"},"_id":"scopify@0.2.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"9e3fc7251606f16296f051daeb9583641b8e681e","tarball":"https://registry.npmjs.org/scopify/-/scopify-0.2.0.tgz","integrity":"sha512-awjWa9r1GZJUSt5cYhGGnfnfgQ/jNRJUHevaaNEt77P9qR/XFug56I9hY50RnZBw8iw9it1S+tp6Bk758HWjwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEE6clrwBc2PwXJsY8JFKk+5YEVw/wl0tbOtoAQg5LywAiEA4ABGuatQheS68Dn8gTo4ERkZrnYBFUXptyAIFMLC5W8="}]},"readme":"# Scopify Browserify plugin\n\nTired of having multiple global requires from different libraries or frameworks?\n\nPut at least the browserify bundle into its own scope so it doesn't spam your global namespace.\n\n## using the CLI tool\n\n```shell\nbrowserify entry.js -p scopify -o browserify.js\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using the middleware\n\n```javascript\nvar express = require('express');\nvar app = express.createServer();\napp.listen(8080);\n\nvar bundle = require('browserify')(__dirname + '/entry.js');\nbundle.use(require('scopify'));\napp.use(bundle);\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using createScope\n\n```javascript\nbundle.use(require('scopify').createScope({\n    inject:\"console.log('running entry ...')\",\n    require:\"./entry\"\n}));\n```\n\nInstead of just simply require scopify you can use the createScope directly to pass options:\n\n* `inject` takes a string containing code which will be injected right after the bundle source\n* `require` do an automatically require (just a shortcut for {inject:\"require('<filename>')\"})\n\n","maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}]},"0.2.1":{"name":"scopify","description":"scope browserify's require away","version":"0.2.1","homepage":"https://github.com/dodo/node-scopify","author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"},"main":"scopify.js","engines":{"node":">= 0.4.x"},"keywords":["browserify","plugin","browser","scope","bundle"],"_npmUser":{"name":"dodo","email":"dodo@blacksec.org"},"_id":"scopify@0.2.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"be45016606717bf0ae563dbdcf06b259cd1a0ac9","tarball":"https://registry.npmjs.org/scopify/-/scopify-0.2.1.tgz","integrity":"sha512-xsNzs6V+XJsKX/9jwg7lC2iUeKftQCQkVatAKX9EJZA2du6cFQvQaqtm2LPEgM2GT0aYrgiydGMnevhgi2XEtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn38wAnGL4xrIoA3Qfx6s40X2t5sU6cTpZDicWI5P15wIgIvIFMi7guFNrHlcbzRCeFfYC7l8F/9Id/L6aGGRomTk="}]},"readme":"# Scopify Browserify plugin\n\nTired of having multiple global requires from different libraries or frameworks?\n\nPut at least the browserify bundle into its own scope so it doesn't spam your global namespace.\n\n## using the CLI tool\n\n```shell\nbrowserify entry.js -p scopify -o browserify.js\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using the middleware\n\n```javascript\nvar express = require('express');\nvar app = express.createServer();\napp.listen(8080);\n\nvar bundle = require('browserify')(__dirname + '/entry.js');\nbundle.use(require('scopify'));\napp.use(bundle);\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using createScope\n\n```javascript\nbundle.use(require('scopify').createScope({\n    inject:\"console.log('running entry ...')\",\n    require:\"./entry\"\n}));\n```\n\nInstead of just simply require scopify you can use the createScope directly to pass options:\n\n* `inject` takes a string containing code which will be injected right after the bundle source\n* `require` do an automatically require (just a shortcut for {inject:\"require('<filename>')\"})\n\n","maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}]},"0.2.2":{"name":"scopify","description":"scope browserify's require away","version":"0.2.2","homepage":"https://github.com/dodo/node-scopify","author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"},"main":"scopify.js","engines":{"node":">= 0.4.x"},"keywords":["browserify","plugin","browser","scope","bundle"],"_npmUser":{"name":"dodo","email":"dodo@blacksec.org"},"_id":"scopify@0.2.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"ee99e9c1159a8b01bfc9ba46f2869498bdc617c9","tarball":"https://registry.npmjs.org/scopify/-/scopify-0.2.2.tgz","integrity":"sha512-EGh+ZB7UJA0srYNA8uK5LSVgcEqWsO4UzXobgH288xTLCjEv6R0cVpIvcQd+IXNliub1YTKdanoL/G5pvR/KNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGtk68hfVrBKyGbY2fCCPxbtBW96EhFv3acKcAWmW6GAIgX7TdqgshXAQ2x0u8CUJTfiFQjNhMwTH6QQRvxsDZIf8="}]},"readme":"# Scopify Browserify plugin\n\nTired of having multiple global requires from different libraries or frameworks?\n\nPut at least the browserify bundle into its own scope so it doesn't spam your global namespace.\n\n## using the CLI tool\n\n```shell\nbrowserify entry.js -p scopify -o browserify.js\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using the middleware\n\n```javascript\nvar express = require('express');\nvar app = express.createServer();\napp.listen(8080);\n\nvar bundle = require('browserify')(__dirname + '/entry.js');\nbundle.use(require('scopify'));\napp.use(bundle);\n```\n\nThen just throw a `<script src=\"/browserify.js\"></script>` into your HTML!\n\n## using createScope\n\n```javascript\nbundle.use(require('scopify').createScope({\n    inject:\"console.log('running entry ...')\",\n    require:\"./entry\"\n}));\n```\n\nInstead of just simply require scopify you can use the createScope directly to pass options:\n\n* `prepend` takes a string containing code which will be injected before the require statement\n* `append` takes a string containing code which will be injected after the require statement\n* `require` do an automatically require (just a shortcut for {inject:\"require('<filename>')\"})\n\n","maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}]}},"maintainers":[{"name":"dodo","email":"dodo@blacksec.org"}],"time":{"modified":"2022-06-26T16:38:06.811Z","created":"2011-10-22T03:43:04.861Z","0.1.0":"2011-10-22T03:43:06.438Z","0.1.1":"2011-11-29T14:19:05.624Z","0.2.0":"2012-01-29T22:45:13.620Z","0.2.1":"2012-01-29T22:53:43.724Z","0.2.2":"2012-05-24T22:53:38.520Z"},"author":{"name":"dodo","url":"https://github.com/dodo"},"repository":{"type":"git","url":"git://github.com/dodo/node-scopify.git"}}