Socket
Socket
Sign inDemoInstall

koa-static

Package Overview
Dependencies
16
Maintainers
10
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

5

History.md
2.1.0 / 2017-02-03
==================
* bump deps
2.0.0 / 2016-01-07

@@ -3,0 +8,0 @@ ==================

12

package.json

@@ -5,3 +5,3 @@ {

"repository": "koajs/static",
"version": "2.0.0",
"version": "2.1.0",
"keywords": [

@@ -18,11 +18,11 @@ "koa",

"devDependencies": {
"istanbul-harmony": "0",
"istanbul": "0",
"koa": "1",
"mocha": "2",
"supertest": "1"
"mocha": "3",
"supertest": "3"
},
"license": "MIT",
"dependencies": {
"debug": "*",
"koa-send": "~3.1.0"
"debug": "^2.6.0",
"koa-send": "^3.3.0"
},

@@ -29,0 +29,0 @@ "scripts": {

@@ -10,5 +10,4 @@ # koa-static

Koa static file serving middleware, wrapper for [`koa-send`](https://github.com/koajs/send).
Static file serving middleware.
## Installation

@@ -37,2 +36,4 @@

- `defer` If true, serves after `yield next`, allowing any downstream middleware to respond first.
- `gzip` Try to serve the gzipped version of a file automatically when gzip is supported by a client and if the requested file with .gz extension exists. defaults to true.
- `extensions` Try to match extensions from passed array to search for file when no extension is sufficed in URL. First found is served. (defaults to `false`)

@@ -60,2 +61,8 @@ ## Example

### See also
- [koajs/conditional-get](https://github.com/koajs/conditional-get) Conditional GET support for koa
- [koajs/compress](https://github.com/koajs/compress) Compress middleware for koa
- [koajs/mount](https://github.com/koajs/mount) Mount `koa-static` to a specific path
## License

@@ -62,0 +69,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc