{"library":"express-promise-router","type":"library","category":null,"description":"express-promise-router is a lightweight wrapper for Express 4's native `Router` that significantly simplifies the handling of asynchronous operations by allowing middleware and route handlers to return Promises. When a Promise is returned, its resolution or rejection is automatically managed, eliminating the need for explicit `next()` calls on successful resolution or `.catch(next)` for rejections. This package is currently on version 4.1.1 and receives regular updates, typically in the form of patch and minor releases, with major versions occurring when significant changes like Node.js version support are introduced. Its primary differentiator is its seamless integration with existing Express applications as a drop-in replacement for `express.Router()`, promoting cleaner, more readable code, especially when leveraging `async/await` syntax. Unlike solutions that patch the `app` object, this library focuses specifically on router instances, allowing for granular control over promise-aware routing.","language":"javascript","status":"active","version":"4.1.1","tags":["javascript","express","promise","router","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-promise-router","imports":["import Router from 'express-promise-router';","const Router = require('express-promise-router');","import Router from 'express-promise-router';"]},{"cmd":"yarn add express-promise-router","imports":[]},{"cmd":"pnpm add express-promise-router","imports":[]}],"homepage":null,"github":"https://github.com/express-promise-router/express-promise-router","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-promise-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/express-promise-router/compatibility"}}