Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-static-folder

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-static-folder - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

index.js

@@ -1,3 +0,2 @@

var debug = require('debug')('koa-static-folder'),
send = require('koa-send'),
var send = require('koa-send'),
fs = require('fs');

@@ -20,7 +19,5 @@

debug('Static: "%s".', root);
var rootStat = fs.statSync(root);
if(!rootStat.isDirectory()) throw Error('Root should be a directory.');
debug('Root is a directory. Initializing static directory serving at "%s"',root);
var finalFiles = walk(root);

@@ -27,0 +24,0 @@

{
"name": "koa-static-folder",
"version": "0.1.1",
"version": "0.1.2",
"description": "Static file server based on a folder instead of a single file. Node needs to be restarted in order to work through file caching.",
"main": "index.js",
"dependencies": {
"assert": "~1.1.1",
"debug": "~0.7.4",
"koa-send": "~1.2.4",
"koa": "~0.5.1"

@@ -10,0 +9,0 @@ },

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