{"library":"koa-path-match","type":"library","category":null,"description":"koa-path-match is a lightweight routing middleware designed for Koa.js applications, currently stable at version 5.0.0. It functions as a minimalist path matcher built on top of the `path-match` library, which itself uses `path-to-regexp` for robust URL pattern matching, mirroring the routing logic found in Express.js. This package distinguishes itself by offering fine-grained control over HTTP method handling and advocating for a single-function-per-route paradigm, intentionally omitting the `next` parameter in method-specific middleware to streamline logic. Its release cycle is closely tied to major version updates of its core `path-to-regexp` dependency. It serves as an efficient solution for basic route dispatching without the complexity of a full-featured routing framework, suitable for microservices or simple API endpoints.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","koa","route","router"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-path-match","imports":["import route from 'koa-path-match'","const route = require('koa-path-match')()","import type { PathMatchOptions } from 'koa-path-match'"]},{"cmd":"yarn add koa-path-match","imports":[]},{"cmd":"pnpm add koa-path-match","imports":[]}],"homepage":null,"github":"https://github.com/koajs/path-match","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-path-match","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/koa-path-match/compatibility"}}