{"library":"koa-static-server","type":"library","category":null,"description":"Static file serving middleware for Koa with support for directory listing, URL rewriting, and custom index files. Current stable version is 1.5.2. This package provides a simple API for serving static assets in Koa applications, similar to koa-static but with built-in options for rootPath rewriting, notFoundFile fallback, gzip support, and index file customization. It is designed for Koa v1 and may not be compatible with Koa v2 without additional conversion middleware.","language":"javascript","status":"maintenance","version":"1.5.2","tags":["javascript","koa","middleware","file","static","sendfile","directory","server","folder"],"last_verified":"Sat May 09","install":[{"cmd":"npm install koa-static-server","imports":["const serve = require('koa-static-server')","import serve from 'koa-static-server'","app.use(serve({ rootDir: 'public' }))"]},{"cmd":"yarn add koa-static-server","imports":[]},{"cmd":"pnpm add koa-static-server","imports":[]}],"homepage":null,"github":"https://github.com/pkoretic/koa-static-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-static-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}