Socket
Socket
Sign inDemoInstall

ecstatic

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecstatic - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

test/default-default-ext.js

1

lib/ecstatic.js

@@ -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) {

2

package.json

@@ -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' : {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc