$ npm install directory-index
Convert directory url path to it's index file path
npm install directory-index --save
var index = require('directory-index');
console.log(index('/some-dir')) // OUTPUTS: /some-dir/index.html'
path - the path the convert (or not)indexFile - the name of the index file. Defaults to index.htmlextension - the extension to compare path to. Defaults to .htmlnpm install
npm test`
© 2010 - cnpmjs.org x YWFE | Home | YWFE