{"_id":"directory-index","_rev":"1745886","name":"directory-index","description":"Convert directory url path to it's index file path","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:41:18.000Z","created":"2014-07-17T23:15:25.210Z","0.1.0":"2014-07-17T23:15:25.210Z"},"users":{},"author":{"name":"Scott Corgan"},"repository":{"type":"git","url":"git@github.com:scottcorgan/directory-index.git"},"versions":{"0.1.0":{"name":"directory-index","version":"0.1.0","description":"Convert directory url path to it's index file path","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | tap-spec"},"repository":{"type":"git","url":"git@github.com:scottcorgan/directory-index.git"},"keywords":["filename","filepath","index"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/directory-index/issues"},"homepage":"https://github.com/scottcorgan/directory-index","devDependencies":{"tap-spec":"^0.2.0","tape":"^2.13.3"},"dependencies":{"slasher":"^0.1.5"},"gitHead":"49e01a65908cdce6944c59690448fef64197ed75","_id":"directory-index@0.1.0","_shasum":"307ce6b20af35fe861af9d876bc6d076787baadb","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"307ce6b20af35fe861af9d876bc6d076787baadb","tarball":"http://registry-npm.ywwl.com/directory-index/download/directory-index-0.1.0.tgz","integrity":"sha512-dUYJ6QZv+oaLu17eHpAGDaR8ulvllI+1Ccyd7X8FnjykDdyXG8JqEpdrLrL0XHk06I8Tud+NNsTzTIjjF2vVEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGr/+rKKhZewMfoyfL0yF+FDTzT3cFxf3kh9auqfJhvqAiEA/h9IYc7qOh7FJOrm9JSBL7Q1mzGDq0HoAMgxShP7a24="}],"size":2102,"noattachment":false,"key":"/directory-index/-/directory-index-0.1.0.tgz"},"publish_time":1405638925210,"_cnpm_publish_time":1405638925210}},"readme":"# directory-index\n\nConvert directory url path to it's index file path\n\n## Install\n\n```\nnpm install directory-index --save\n```\n\n## Usage\n\n```js\nvar index = require('directory-index');\n\nconsole.log(index('/some-dir')) // OUTPUTS: /some-dir/index.html'\n```\n\n### Options\n\n#### index(path [, indexFile, extension])\n\n* `path` - the path the convert (or not)\n* `indexFile` - the name of the index file. Defaults to `index.html`\n* `extension` - the extension to compare path to. Defaults to `.html`\n\n## Run Tests\n\n```\nnpm install\nnpm test`\n```\n","_attachments":{},"homepage":"https://github.com/scottcorgan/directory-index","bugs":{"url":"https://github.com/scottcorgan/directory-index/issues"},"license":"MIT"}