{"_id":"settle","_rev":"1745688","name":"settle","description":"Express/Connect middleware that serves local or remote static files","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:27:59.000Z","created":"2014-07-22T17:26:25.307Z","0.3.1":"2014-08-29T21:12:40.143Z","0.3.0":"2014-08-29T21:11:36.037Z","0.2.0":"2014-08-29T19:59:38.580Z","0.1.2":"2014-07-31T18:06:04.535Z","0.1.1":"2014-07-29T22:37:20.751Z","0.1.0":"2014-07-22T17:26:25.307Z"},"users":{},"author":{"name":"Divshot"},"repository":{"type":"git","url":"https://github.com/divshot/settle.git"},"versions":{"0.3.1":{"name":"settle","version":"0.3.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/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.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":"settle@0.3.1","_shasum":"cc7ae61d5353c2bed7eac2ca93f092fc07593d26","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"cc7ae61d5353c2bed7eac2ca93f092fc07593d26","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.3.1.tgz","integrity":"sha512-aqFh8tR2bJXrYPC/q4Y1XgGXQMTKtoe/5HlT8mgiUVDqDCZC7+rhpeMCt99cqSBe5lnJ2LUaIphTyiUcZoAMGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMpMwc8HSJ9+ApzwKUAEvz+wE7LtB45qj17CemNyXLKgIhAJ2mh2KMrIBaclT5nQuxgOi8tS+99bPGM4ngMrcaQJHO"}],"size":3128,"noattachment":false,"key":"/settle/-/settle-0.3.1.tgz"},"deprecated":"Use module Broker instead","publish_time":1409346760143,"_cnpm_publish_time":1409346760143},"0.3.0":{"name":"settle","version":"0.3.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.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":"settle@0.3.0","_shasum":"ba8de494c689d3745527b20ee3f3e93dde942238","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"ba8de494c689d3745527b20ee3f3e93dde942238","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.3.0.tgz","integrity":"sha512-N2QVcannYLJUDIF5y9y02ORujN8HwNKN3HEo4RoAZ2Uj6FUUyVucYmravuPMN79SkIsX+C6l9kNj2BBGybQyWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPwsTy9zMUE3l5W3AB2jCqG0/g0Tk2xVMzvtA783CS5AIhAK752u6JtcU1hTpKj6AFRPqTjLINFuN1Aw/4xbYd7Gku"}],"size":3142,"noattachment":false,"key":"/settle/-/settle-0.3.0.tgz"},"deprecated":"Use module Broker instead","publish_time":1409346696037,"_cnpm_publish_time":1409346696037},"0.2.0":{"name":"settle","version":"0.2.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.5.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":"settle@0.2.0","_shasum":"5a71b43ec7a3606f942f3d3e7c8c3464e86edd48","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"5a71b43ec7a3606f942f3d3e7c8c3464e86edd48","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.2.0.tgz","integrity":"sha512-Ilfb08xxKzWFZDqVeGGn9RF1GCAjzlIacfZul6NDkQYGM/xtSHKKH4Y9HilwMdiaIRSXQ9j+sJ8nHpJch95Qvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/x4CFwwpGpZ9F1CqtUSkNsx0Eb6hvTbWqsyY3/q7x/AiEA+TSHp3CI1P5p7fb5374XBkNXG8wWQRpfRGwDTg5v6lI="}],"size":3127,"noattachment":false,"key":"/settle/-/settle-0.2.0.tgz"},"deprecated":"Use module Broker instead","publish_time":1409342378580,"_cnpm_publish_time":1409342378580},"0.1.2":{"name":"settle","version":"0.1.2","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":{"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":"settle@0.1.2","_shasum":"e33d8065020d19ae2dc2ef0edea1362772727f72","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"e33d8065020d19ae2dc2ef0edea1362772727f72","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.1.2.tgz","integrity":"sha512-c6n9Fv/YSrBOr0ki9n7qzQhFkLyBUxe42/Q6EYyMn/9Jxbc5srS6Qt2Z4ZAorm7fp2yd9tMajbdouGEtmqpX7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwNpP7/psUZlopWbIQU0Vn1bPydPA0bVNPE5Np8po81AIgO6xzUV2TXyYXigwWkOyzLV8kTpihEaX4lJ5VD+nIsxc="}],"size":3127,"noattachment":false,"key":"/settle/-/settle-0.1.2.tgz"},"deprecated":"Use module Broker instead","publish_time":1406829964535,"_cnpm_publish_time":1406829964535},"0.1.1":{"name":"settle","version":"0.1.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/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":{"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":"6cbfefd3705cd8262453d81c7a27625603a6e18a","_id":"settle@0.1.1","_shasum":"8e3edfea018bcf22b4db7d0e98da1bcc3f8ab537","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"8e3edfea018bcf22b4db7d0e98da1bcc3f8ab537","tarball":"http://registry-npm.ywwl.com/settle/download/settle-0.1.1.tgz","integrity":"sha512-z+rundUslAk05jQqgzfzY8nXx6fqXgvLsFdg/p888oQWbqFrkHKqisvJWZnrWS+YgY/bL5YGgPhFtHl2KgdL7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB0oXrtDMvVD9UKCd2GDYTY1po9CqaY7qPoNWcQSW2amAiBVCl3VJQ2vAhdmyIIh6ogOr5yD9u0JtE9VuEKUtv1Qdg=="}],"size":3090,"noattachment":false,"key":"/settle/-/settle-0.1.1.tgz"},"deprecated":"Use module Broker instead","publish_time":1406673440751,"_cnpm_publish_time":1406673440751},"0.1.0":{"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","publish_time":1406049985307,"_cnpm_publish_time":1406049985307}},"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","_attachments":{},"homepage":"https://github.com/divshot/settle","bugs":{"url":"https://github.com/divshot/settle/issues"},"license":"MIT"}