{"name":"slashify","version":"0.1.0","description":"Express/Connect middleware to handle trailing slashes with options","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/slashify.git"},"keywords":["divshot","superstatic","trailing","slash","redirect"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/slashify/issues"},"homepage":"https://github.com/divshot/slashify","dependencies":{"fast-url-parser":"^1.0.6-0","file-exists":"^0.1.1"},"devDependencies":{"chai":"^1.9.1","connect":"^3.1.0","connect-query":"^0.1.0","fs-extra":"^0.10.0","mocha":"^1.20.1","supertest":"^0.13.0"},"gitHead":"e75cc1ccd86053958056ed4422e0c5320ec73de9","_id":"slashify@0.1.0","_shasum":"d6799d2aee5ebec682c33c9b5808b9e4a06ba77e","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"d6799d2aee5ebec682c33c9b5808b9e4a06ba77e","tarball":"http://registry-npm.ywwl.com/slashify/download/slashify-0.1.0.tgz","integrity":"sha512-9D7BzyE1oCjplFrp+mmBa6yumAA27bKySnxLc9+FM8tYcGCCxHrb24FMdAk37iaMS+cWcnbTrC8BKmWUmQKBog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqB7nPF5GxCKPq0x1WY3G0gsmEM1j6MvVqQQNauqFbUAiATb3sXcR13gUoVx+zcwqfPhcrurieOQsnyKlLbr7h9Cw=="}],"size":3069,"noattachment":false,"key":"/slashify/-/slashify-0.1.0.tgz"},"readme":"# slashify\n\nExpress/Connect middleware to handle trailing slashes with options.\n\n**Why?**\n\nWhy another *remove trailing slash* middleware? Because we wanted options. Like leaving the slash when serving the index file of a directory and custom index file names, etc!\n\n## Install\n\n```\nnpm install slashify --save\n```\n\n## Usage\n\n```js\nvar express = require('express');\nvar slashify = require('slashify');\n\nvar app = express();\n\napp.use(slashify());\n\napp.listen(3000, function () {\n  \n});\n```\n\n### slashify([options])\n\n* `options`\n  * `root` - the root directory. This is mostly used when you have a directory handling turned on and/or have custom index file names. Defaults to `./`\n  * `index` - the name of the directory index file. Defaults to `index.html`.\n  * `directory` - set whether or not you want slashify to leave the trailing slash when serving the index file of a directory. Defaults to `true`. Set to `false` to remove the trailing slash for all paths.\n\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```","publish_time":1406132506859,"_cnpm_publish_time":1406132506859,"dist-tags":{"latest":"1.0.0"}}