Simple HTTP File Server
JSON →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.
Traffic · last 30 days ↓67% vs prev 7d
top countries 🇺🇸 United States · 🇷🇺 Russia · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany