A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/koa-modules/serve-static below:

koa-modules/serve-static: Serve static files, based on Express's serve-static.

koa-serve-static

Serve static files for koa.
serve-static wrapper for koa's middleware.

Install
$ npm install --save koa-serve-static
Usage =1.x 100%, working with koa-v2
const koa = require('koa');
const serveStatic = require('koa-serve-static');
const app = new Koa();

app.use(serveStatic(root, options));
<1.x
var koa = require('koa');
var serveStatic = require('koa-serve-static');
var app = koa();

app.use(serveStatic(root, options));

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4