Compare commits

...

6 Commits

Author SHA1 Message Date
Douglas Christopher Wilson
4e8726c41c 1.1.2 2014-06-19 11:09:23 -04:00
Douglas Christopher Wilson
d7d661245e deps: batch@0.5.1 2014-06-19 11:02:13 -04:00
Douglas Christopher Wilson
5037f808c0 1.1.1 2014-06-11 23:59:59 -04:00
Douglas Christopher Wilson
910923b920 deps: accepts@1.0.3 2014-06-11 23:49:07 -04:00
Douglas Christopher Wilson
70c35f62b2 build: use compact formats in package 2014-06-11 22:46:53 -04:00
Basarat Ali Syed
73ceabeb00 docs: use module name as export name
closes #10
2014-06-08 23:14:33 -04:00
3 changed files with 17 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
1.1.2 / 2014-06-19
==================
* deps: batch@0.5.1
1.1.1 / 2014-06-11
==================
* deps: accepts@1.0.3
1.1.0 / 2014-05-29
==================

View File

@@ -10,15 +10,15 @@
```js
var express = require('express')
var directory = require('serve-index')
var serveIndex = require('serve-index')
var app = express()
app.use(directory('public/ftp', {'icons': true}))
app.use(serveIndex('public/ftp', {'icons': true}))
app.listen()
```
### directory(path, options)
### serveIndex(path, options)
Returns middlware that serves an index of the directory in the given `path`.

View File

@@ -1,19 +1,13 @@
{
"name": "serve-index",
"description": "Serve directory listings",
"version": "1.1.0",
"version": "1.1.2",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/expressjs/serve-index.git"
},
"bugs": {
"url": "https://github.com/expressjs/serve-index/issues"
},
"repository": "expressjs/serve-index",
"dependencies": {
"accepts": "1.0.2",
"batch": "0.5.0"
"accepts": "1.0.3",
"batch": "0.5.1"
},
"devDependencies": {
"istanbul": "0.2.10",