{"name":"settle","version":"0.1.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/settle.git"},"keywords":["divshot","superstatic","send","serve","proxy"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/settle/issues"},"homepage":"https://github.com/divshot/settle","dependencies":{"deliver":"^0.4.2","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1","mime-types":"^1.0.1"},"devDependencies":{"connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"gitHead":"9ef9260290caa28472754a435454311b16d3af7d","_id":"settle@0.1.0","_shasum":"172f2107adea26dfc14a2a4d0920ac5e661efe9a","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"172f2107adea26dfc14a2a4d0920ac5e661efe9a","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.1.0.tgz","integrity":"sha512-59DYnaNouS7XhSO9ZedH1NMcNPhjzjutaEZDXo6O/EGDYrAWsFmwNzb7n3I3WcMBQ/cqGbJQJERLyzSJEngxuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk+WT7CyxNmU+cDJaixJI8r6Jm9wzngPTwS7+VZZNGBAIgdRvJkgBFiiYrnJyTaoKbM5GWKtijFzedfYL/Q9das+w="}],"size":3050,"noattachment":false,"key":"/settle/-/settle-0.1.0.tgz"},"deprecated":"Use module Broker instead","readme":"# settle\n\nExpress/Connect middleware that serves local or remote static files. \n\n## Install\n\n```\nnpm install settle --save\n```\n\n## Usage\n\nServe static files\n\n```js\nvar express = require('express');\nvar settle = require('settle');\n\nvar app = express();\n\napp.use(settle({\n  root: '/public'\n}));\n\napp.listen(3000, function () {\n\n});\n```\n\nProxy remote files\n\n```js\nvar express = require('express');\nvar settle = require('settle');\n\nvar app = express();\n\napp.use(settle({\n  root: 'http://proxyserver.com'\n}));\n\napp.listen(3000, function () {\n\n});\n```\n\n### settle([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","publish_time":1406049985307,"_cnpm_publish_time":1406049985307,"dist-tags":{"latest":"0.3.1"}}