serve-static
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,7 @@ | ||
1.3.1 / 2014-07-09 | ||
================== | ||
* deps: parseurl@~1.1.3 | ||
- faster parsing of href-only URLs | ||
1.3.0 / 2014-06-28 | ||
@@ -2,0 +8,0 @@ ================== |
24
index.js
@@ -20,26 +20,2 @@ /*! | ||
/** | ||
* Static: | ||
* | ||
* Static file server with the given `root` path. | ||
* | ||
* Examples: | ||
* | ||
* var oneDay = 86400000; | ||
* var serveStatic = require('serve-static'); | ||
* | ||
* connect() | ||
* .use(serveStatic(__dirname + '/public')) | ||
* | ||
* connect() | ||
* .use(serveStatic(__dirname + '/public', { maxAge: oneDay })) | ||
* | ||
* Options: | ||
* | ||
* - `maxAge` Browser cache maxAge in milliseconds. defaults to 0 | ||
* - `hidden` Allow transfer of hidden files. defaults to false | ||
* - `redirect` Redirect to trailing "/" when the pathname is a dir. defaults to true | ||
* - `index` Default file name, defaults to 'index.html' | ||
* | ||
* Further options are forwarded on to `send`. | ||
* | ||
* @param {String} root | ||
@@ -46,0 +22,0 @@ * @param {Object} options |
{ | ||
"name": "serve-static", | ||
"description": "Serve static files", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -10,7 +10,7 @@ "license": "MIT", | ||
"escape-html": "1.0.1", | ||
"parseurl": "1.0.1", | ||
"parseurl": "~1.1.3", | ||
"send": "0.5.0" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.2.13", | ||
"istanbul": "0.3.0", | ||
"mocha": "~1.20.0", | ||
@@ -17,0 +17,0 @@ "should": "~4.0.0", |
9746
97
+ Addedparseurl@1.1.3(transitive)
- Removedparseurl@1.0.1(transitive)
Updatedparseurl@~1.1.3