{"_id":"slashify","_rev":"1745700","name":"slashify","description":"Express/Connect middleware to handle trailing slashes with options","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:29:30.000Z","created":"2014-07-23T16:21:46.859Z","1.0.0":"2015-03-19T20:19:01.646Z","0.1.0":"2014-07-23T16:21:46.859Z"},"users":{},"author":{"name":"Divshot"},"repository":{"type":"git","url":"https://github.com/divshot/slashify.git"},"versions":{"1.0.0":{"name":"slashify","version":"1.0.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":"2c64d8663a0ae90f41e2f978ea84276299913970","_id":"slashify@1.0.0","_shasum":"244ba6a4847fd07a6495e8b8fdbf45b5e4089528","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"244ba6a4847fd07a6495e8b8fdbf45b5e4089528","tarball":"http://registry-npm.ywwl.com/slashify/download/slashify-1.0.0.tgz","integrity":"sha512-zxrBEIECYmJqiSUvAQ0/Nrpj+/RS7E35NnGcz8pdy0UEuI8no20d4yetiTklGs8/9DlsT9eUP+u9z6VMxKh+Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuUUJOUnx5QpNs21zdDRZEbBnRnzTfpcr4ubPXwys/AAiAvcYXbOP8Yym3OVQsPRNJNwgb4878KZAPMRdqqiuBz+A=="}],"size":3135,"noattachment":false,"key":"/slashify/-/slashify-1.0.0.tgz"},"publish_time":1426796341646,"_cnpm_publish_time":1426796341646},"0.1.0":{"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"},"publish_time":1406132506859,"_cnpm_publish_time":1406132506859}},"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```","_attachments":{},"homepage":"https://github.com/divshot/slashify","bugs":{"url":"https://github.com/divshot/slashify/issues"},"license":"MIT"}