directory-index
Convert directory url path to it's index file path
Last updated 12 years ago by scottcorgan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install directory-index 
SYNC missed versions from official npm registry.

directory-index

Convert directory url path to it's index file path

Install

npm install directory-index --save

Usage

var index = require('directory-index');

console.log(index('/some-dir')) // OUTPUTS: /some-dir/index.html'

Options

index(path [, indexFile, extension])

  • path - the path the convert (or not)
  • indexFile - the name of the index file. Defaults to index.html
  • extension - the extension to compare path to. Defaults to .html

Run Tests

npm install
npm test`

Current Tags

  • 0.1.0                                ...           latest (12 years ago)

1 Versions

  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE