{"library":"file-server","type":"library","category":null,"description":"The `file-server` package provides a minimalistic HTTP file and directory serving library for Node.js, currently at stable version 2.2.1. It offers a low-level API to create custom file-serving handlers, supporting features like ETag-based caching, configurable `max-age`, and GZIP compression (inferred from package keywords). Updates appear infrequent, suggesting a maintenance-focused cadence rather than active feature development, with the last major update (v2.0.0) removing support for Node.js versions older than 8. Its key differentiators include a callback-based error handling system and explicit control over MIME types and directory access, offering a fundamental building block for custom static file servers rather than an opinionated middleware solution.","language":"javascript","status":"maintenance","version":"2.2.1","tags":["javascript","file","server","serve","static","cache","gzip","http","directory"],"last_verified":"Wed May 27","install":[{"cmd":"npm install file-server","imports":["const FileServer = require('file-server');"]},{"cmd":"yarn add file-server","imports":[]},{"cmd":"pnpm add file-server","imports":[]}],"homepage":null,"github":"https://github.com/MauriceButler/file-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/file-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/file-server/compatibility"}}