{"name":"clean-urls","version":"1.1.0","description":"Express/Connect middleware to serve static files from cleaner, extensionless urls","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/clean-urls.git"},"keywords":["divshot","superstatic","extension","clean","urls"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/clean-urls/issues"},"homepage":"https://github.com/divshot/clean-urls","devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","connect-query":"^0.1.0","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0"},"dependencies":{"as-array":"^0.1.2","booly":"^1.0.2","deliver":"^1.1.0","fast-url-parser":"^1.0.6-0","file-exists":"^0.1.0","join-path":"^1.0.0","lodash.find":"^2.4.1","mime-types":"2.0.2","minimatch":"^1.0.0"},"gitHead":"01872af18a4cc7524ef8367b8005e3500ea59ff8","_id":"clean-urls@1.1.0","_shasum":"5dc8127a20f4d1ef715a47e2cc1e6f9080f5ff0f","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"5dc8127a20f4d1ef715a47e2cc1e6f9080f5ff0f","tarball":"http://registry-npm.ywwl.com/clean-urls/download/clean-urls-1.1.0.tgz","integrity":"sha512-AQncvdKdk19Ga41B3UEw89+9LPM+sYW43awFgzsZzmGQVDl8Dn8rVbgHFCLN0NT/neAYxyV0emwQ2UORjHy0oQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIXY1lKXF5Op7xQncHL/8kHftgr7YabwtDHpY5I7v6igIgYLYXO5m8e42cAm1KQlv/sTEjrn0RjgBT7VboQQ/ySEw="}],"size":3826,"noattachment":false,"key":"/clean-urls/-/clean-urls-1.1.0.tgz"},"readme":"# clean-urls\n\nExpress/Connect middleware to serve static files from cleaner, extensionless urls.\n\nClean urls are only used for `.html` files. Useful for sites like blogs that are generated from static site generators such as Jekyll.\n\n## Install\n\n```\nnpm install clean-urls --save\n```\n\n## Usage\n\n```js\nvar express = require('express');\nvar cleanUrls = require('clean-urls');\n\nvar app = express();\n\napp.use(cleanUrls(['/app/**']));\n\napp.listen(3000, function () {\n  \n});\n```\n\n### cleanUrls([rules, options])\n\n* `rules` - OPTIONAL - this is where you define which paths get treated for clean urls. Values can be blank, `true`, `false`, a glob-like string (`/app/**/*.html`), or an array of globs.\n* `options`\n  * `root` - root directory of your static files. This is used to determine if the url maps a static file and to serve those static files.\n  * `index` - name if the directory index file. Defaults to `index.html`. This is used to redirect you to the directory url instead of the index url and to serve the index file if it is a directory url.\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","publish_time":1412282858607,"_cnpm_publish_time":1412282858607,"dist-tags":{"latest":"1.1.5"}}