Comparing version 0.5.3 to 0.5.4
@@ -30,2 +30,3 @@ #! /usr/bin/env node | ||
opts.root = dir; | ||
if (defaultExt && /^\./.test(defaultExt)) defaultExt = defaultExt.replace(/^\./, ''); | ||
@@ -32,0 +33,0 @@ return function middleware (req, res, next) { |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"homepage": "https://github.com/jesusabdullah/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -69,3 +69,3 @@ # Ecstatic [![build status](https://secure.travis-ci.org/jesusabdullah/node-ecstatic.png)](http://travis-ci.org/jesusabdullah/node-ecstatic) | ||
cache : 3600, | ||
showDir : false, | ||
showDir : true, | ||
autoIndex : false, | ||
@@ -100,3 +100,3 @@ humanReadable : true, | ||
Turn **on** directory listings with `opts.showDir === true`. Defaults to **false**. | ||
Turn **off** directory listings with `opts.showDir === false`. Defaults to **true**. | ||
@@ -103,0 +103,0 @@ ### `opts.humanReadable` |
module.exports = { | ||
'404' : { | ||
code: 404 | ||
code: 200 | ||
}, | ||
@@ -5,0 +5,0 @@ 'something non-existant' : { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238202
42
1137
11