Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e8726c41c | ||
|
|
d7d661245e | ||
|
|
5037f808c0 | ||
|
|
910923b920 | ||
|
|
70c35f62b2 | ||
|
|
73ceabeb00 |
10
History.md
10
History.md
@@ -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
|
||||
==================
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
|
||||
14
package.json
14
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user