{"library":"static-content","type":"library","category":null,"description":"This middleware is part of the `atmajs` ecosystem, designed for handling static file serving in Node.js HTTP servers. It provides features like caching, gzipping, and range requests for optimized delivery of various content types including HTML, scripts, images, and videos. It supports custom MIME types, encoding configurations, and integrates seamlessly with `atma-server` and Connect-style middleware stacks. Currently at version 1.2.2, its release cadence is not explicitly defined, but it appears to be a stable, mature component within its specific framework, primarily targeting CommonJS environments. Key differentiators include its tight integration with `atma-io` for advanced file reading and its support for virtual files and custom file `read` middlewares, offering more flexibility than generic static servers.","language":"javascript","status":"maintenance","version":"1.2.2","tags":["javascript"],"install":[{"cmd":"npm install static-content","imports":["const StaticContentMiddleware = require('static-content');","const createStaticMiddleware = require('static-content').create;","const StaticCache = require('static-content').Cache;"]},{"cmd":"yarn add static-content","imports":[]},{"cmd":"pnpm add static-content","imports":[]}],"homepage":"https://atma.js.org","github":"https://github.com/atmajs/atma-server-static","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/static-content","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/static-content/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}