{"library":"node-static","type":"library","category":null,"description":"`node-static` is a legacy module designed for serving static files over HTTP, adhering to RFC 2616, including support for conditional GET and HEAD requests. The last published version, 0.7.11, dates back over eight years, targeting very old Node.js environments (engine requirement `node >= 0.4.1`). It simplifies static file serving by abstracting `Cache-Control` headers and basic error handling, allowing developers to specify a root directory and cache duration. Due to its age and lack of maintenance, it is now considered abandoned. Its API heavily relies on callback patterns and older Node.js `http` module stream handling, which are not idiomatic in modern JavaScript development, making it unsuitable for contemporary projects.","language":"javascript","status":"abandoned","version":"0.7.11","tags":["javascript","http","static","file","server"],"install":[{"cmd":"npm install node-static","imports":["const static = require('node-static');\nconst fileServer = new static.Server('./public');","fileServer.serve(request, response);","fileServer.serveFile('/error.html', 404, {}, request, response);"]},{"cmd":"yarn add node-static","imports":[]},{"cmd":"pnpm add node-static","imports":[]}],"homepage":null,"github":"https://github.com/cloudhead/node-static","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-static","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/node-static/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}