{"library":"http-hash-router","type":"library","category":null,"description":"http-hash-router is a lightweight server-side routing utility for Node.js's native `http` module, built upon the `http-hash` package for pattern matching. It is currently at version 2.0.1 and appears to be a stable, mature package primarily designed for CommonJS environments, indicated by its `require` syntax in examples. While specific release cadence isn't published, its current version and historical usage patterns suggest a focus on stability rather than frequent feature updates. It provides a simple API to define routes using patterns (including parameters and splats) and associate them with request handlers. A key differentiator is its callback-based error handling, specifically designed to integrate directly into Node.js's HTTP server callback without introducing a complex middleware stack. It explicitly manages `404 Not Found` errors and provides a structured way to access URL parameters within handlers, making it suitable for minimalistic HTTP service implementations.","language":"javascript","status":"maintenance","version":"2.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-hash-router","imports":["const HttpHashRouter = require('http-hash-router');","router.set('/path', handlerFunc);"]},{"cmd":"yarn add http-hash-router","imports":[]},{"cmd":"pnpm add http-hash-router","imports":[]}],"homepage":null,"github":"https://github.com/Matt-Esch/http-hash-router","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-hash-router","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/http-hash-router/compatibility"}}