{"_id":"broker","_rev":"23-93b5bb6e99c71729943645082ac5d121","name":"broker","description":"Express/Connect middleware that serves local or remote static files","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"broker","description":"A simple node.js broker for intermodule communication.","version":"0.1.0","repository":{"type":"git","url":"git@github.com:tommedema/node-broker.git"},"author":{"name":"tmedema"},"main":"src/broker.js","directories":{"src":"src"},"engines":{"node":"*"},"_id":"broker@0.1.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"28497ce305b762a58e20cf87184b3fd6cd9a3683","tarball":"https://registry.npmjs.org/broker/-/broker-0.1.0.tgz","integrity":"sha512-F2WCwsyhLsE014cnsMRNSJx46QIOHfYrvda3wlG9WGw5lb/kW2aYr771HF8r6yE2NQP/B6V+Y2Q8fCAqYKrviw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVRQg5Vi6S0gRL6WmKDni661T4ZdUiu0TDg6/iwSCHZgIgcfBpWKz39cn5ZLf7Felvj7E4n5TuYImkiMxfX+IioVc="}]}},"0.1.1":{"name":"broker","description":"A simple node.js broker for intermodule communication.","version":"0.1.1","repository":{"type":"git","url":"git@github.com:tommedema/node-broker.git"},"author":{"name":"tmedema"},"main":"src/broker.js","directories":{"src":"src"},"engines":{"node":"*"},"_id":"broker@0.1.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d618fdf8ce1dade303b2d99441bed94a58685a78","tarball":"https://registry.npmjs.org/broker/-/broker-0.1.1.tgz","integrity":"sha512-oUo+CCCSmZpNK9e7P57mgAFZ4AJUJS0nlPfucTFmfT3KzApzCxH2MWAvmH8pic2QugGvA+O9pOdvd6h2Zk47yQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1pM3N2YZa30KKcBy0U+qKvIvRzZWGGmDrvuerO7UjXgIhAJxZ4/pMbCdhF9yX2ZOvDvQLxwiE36lsNAvXxGoPjYdQ"}]}},"0.1.2":{"name":"broker","description":"A simple node.js broker for intermodule communication.","version":"0.1.2","repository":{"type":"git","url":"git@github.com:tommedema/node-broker.git"},"author":{"name":"tmedema"},"main":"src/broker.js","directories":{"src":"src"},"engines":{"node":"*"},"_id":"broker@0.1.2","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"2163bb1d51b600f24f46e9d9040e6fe875d69eca","tarball":"https://registry.npmjs.org/broker/-/broker-0.1.2.tgz","integrity":"sha512-cM0ImQkqs9GkBzoD1j2DPZelE1QlKzBGx8epac1dUDmIa1ieQeYGoik/Ti55r5/fuAKjtQlcwC6EHGM9glMG1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5GwCycSurYGPhADtNH/DclM3HeWq9zrVSsTWW/ZNWKQIhAOx+IgYCyFNKluKta4HSpPTYLjGOdFwqgP0aBDQDc+H9"}]}},"0.1.3":{"name":"broker","description":"A simple node.js broker for intermodule communication.","version":"0.1.3","repository":{"type":"git","url":"git@github.com:tommedema/node-broker.git"},"author":{"name":"tmedema"},"main":"src/broker.js","directories":{"src":"src"},"engines":{"node":"*"},"_id":"broker@0.1.3","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"b9fdad8b51604fc902299a4570c9a9c0a9ba371c","tarball":"https://registry.npmjs.org/broker/-/broker-0.1.3.tgz","integrity":"sha512-tHg7Czm4e7La41BjN7yrshaAtdFfBjoVVabsC1JwH8LarjJdgEO21fu180ZqxPlvovUfM/WKqRYZ8lEU6nvkhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnhetSOCytHfS/AHiMnhtP387nWjx2nQsUv6plBifcFgIhANWkyeCtDd8FvwkAx+aIdyc2Agmq39An99ebAbbCNFnW"}]}},"0.4.0":{"name":"broker","version":"0.4.0","description":"Express/Connect middleware that serves local or remote static files","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/broker.git"},"keywords":["divshot","superstatic","send","serve","proxy"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/broker/issues"},"homepage":"https://github.com/divshot/broker","dependencies":{"deliver":"^0.6.0","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1","mime-types":"^1.0.1"},"devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"_id":"broker@0.4.0","_shasum":"94d4ea16c789a807ee93cc92126876561f418cd4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"94d4ea16c789a807ee93cc92126876561f418cd4","tarball":"https://registry.npmjs.org/broker/-/broker-0.4.0.tgz","integrity":"sha512-4EokzXPB8/7WPb+j8rAcL2oO+9mmS87WeLsy18gAqwFWnmchenp9/fLVO/rvJvqmbzZaAfw9g4akCqJ0NiGn1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFK2ii1arVVrle8TXIBzrB9CiDhsC64c+6AWd7yfEhGJAiEA6CBGMPbKSWIT0gGbDhP3T0itl+3ZGQlFEpjpmfr82cs="}]}},"0.4.1":{"name":"broker","version":"0.4.1","description":"Express/Connect middleware that serves local or remote static files","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/broker.git"},"keywords":["divshot","superstatic","send","serve","proxy"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/broker/issues"},"homepage":"https://github.com/divshot/broker","dependencies":{"deliver":"^0.6.0","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1","mime-types":"^1.0.1"},"devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"gitHead":"3cf28582df19d8e9fd3f59ec554bdd97551d4181","_id":"broker@0.4.1","_shasum":"98a50e36949c32e4cfb43866cfffbc37eebec69d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"98a50e36949c32e4cfb43866cfffbc37eebec69d","tarball":"https://registry.npmjs.org/broker/-/broker-0.4.1.tgz","integrity":"sha512-wq2mlpk6gmDdHv1UwMpDOo6F8T3q3Ud3YtJ2uRIZiT+4FWPOSnRSuZn85IZaSoNEOq8/e5Xp8iolbZX0ALhhqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjzBirm6Uj5Nbh16ezHdhiwnjVxr8VhgJA2uey3XVoCAiEA3+OdzLGRwCvAddJ9y4rJLYen3RmK+gTAuE1aDTyauY8="}]}},"1.0.0":{"name":"broker","version":"1.0.0","description":"Express/Connect middleware that serves local or remote static files","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/broker.git"},"keywords":["divshot","superstatic","send","serve","proxy"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/broker/issues"},"homepage":"https://github.com/divshot/broker","dependencies":{"deliver":"^1.0.0","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1","mime-types":"^1.0.1"},"devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"gitHead":"4af5886b45e0d7fefab643179478b8c7a90fe21b","_id":"broker@1.0.0","_shasum":"e6422a85099c90d82010528e27fb374c5b796b8b","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"e6422a85099c90d82010528e27fb374c5b796b8b","tarball":"https://registry.npmjs.org/broker/-/broker-1.0.0.tgz","integrity":"sha512-fqPAX8cNF17ZZQRUqv1A+I0r72qiNWLJh7aKirR7sj54UBJBaczdnpjL7CyIhbwZLB/zq5Wh3DkWF5Ev+e2TYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLCkMHv+ji2g4BasyRWZgGVvsx0Q/TB3ozSCLuOO5w6AiEAsf9aMfqONMhr0Rd75sLiB3cHXO3hU+B8nRSlFOo5GlA="}]}},"1.0.1":{"name":"broker","version":"1.0.1","description":"Express/Connect middleware that serves local or remote static files","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/broker.git"},"keywords":["divshot","superstatic","send","serve","proxy"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/broker/issues"},"homepage":"https://github.com/divshot/broker","dependencies":{"deliver":"^1.1.0","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1","mime-types":"^1.0.1"},"devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"gitHead":"2f8c6d5dfead363098ea113c4ea4a50ec295344d","_id":"broker@1.0.1","_shasum":"2fbc1eb9a1adf9b95440af402ce55aba0beae065","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"2fbc1eb9a1adf9b95440af402ce55aba0beae065","tarball":"https://registry.npmjs.org/broker/-/broker-1.0.1.tgz","integrity":"sha512-nlQjqRYkg/NXsQtbi1r3BFvkjRTU16yChcJNFdg5HBMnbcGRwTpYaNBjjmZsO5gH9Th9au/KxS7DX/yUvXvGIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCou7xG09MG5SyQb1eeNs39j2vzk8cPDnWl7IjWXUrB+wIhAPWk80yiwp17Lyt5pJgIrTIw5QKveeJpICLDKqmGMuxW"}]}}},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"},{"name":"mbleigh","email":"michael@intridea.com"}],"time":{"modified":"2022-06-13T05:08:46.935Z","created":"2011-05-16T13:12:52.621Z","0.1.0":"2011-05-16T13:12:53.191Z","0.1.1":"2011-05-16T13:25:47.492Z","0.1.2":"2011-05-16T20:31:13.992Z","0.1.3":"2011-05-21T17:12:05.936Z","0.4.0":"2014-08-29T21:30:02.760Z","0.4.1":"2014-09-11T21:30:42.868Z","1.0.0":"2014-09-11T21:52:45.045Z","1.0.1":"2014-09-17T16:30:11.344Z"},"author":{"name":"Divshot"},"repository":{"type":"git","url":"https://github.com/divshot/broker.git"},"readme":"# broker\n\nExpress/Connect middleware that serves local or remote static files. \n\n## Install\n\n```\nnpm install broker --save\n```\n\n## Usage\n\nServe static files\n\n```js\nvar express = require('express');\nvar broker = require('broker');\n\nvar app = express();\n\napp.use(broker({\n  root: '/public'\n}));\n\napp.listen(3000, function () {\n\n});\n```\n\nProxy remote files\n\n```js\nvar express = require('express');\nvar broker = require('broker');\n\nvar app = express();\n\napp.use(broker({\n  root: 'http://proxyserver.com'\n}));\n\napp.listen(3000, function () {\n\n});\n```\n\n### broker([options])\n\n* **options** - the options are similar to the [send module](https://github.com/visionmedia/send#options) because it uses this to serve local static files. Here are a few:\n  * `root` - the root directory if serving local files or the url to prepend to requests to proxy remote static files\n  * `index` - a string or array of strings that define the directory index file\n  * `dotfiles` - how to handle files that begin with a dot. These are usually hidden files. The default value is ignore. Available options:\n    * `allow` - No special treatment for dotfiles\n    * `deny` - Send a 403 for any request for a dotfile\n    * `ignore` - Pretend like the dotfile does not exist and 404\n  \n\n\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","readmeFilename":"README.md","homepage":"https://github.com/divshot/broker","keywords":["divshot","superstatic","send","serve","proxy"],"bugs":{"url":"https://github.com/divshot/broker/issues"},"license":"MIT","users":{"oakley349":true}}