{"library":"light-my-request","type":"library","category":null,"description":"light-my-request is a utility library designed to simulate HTTP requests against Node.js HTTP servers without requiring the server to be bound to a network port or even in a listening state. This makes it an ideal tool for writing fast, isolated tests for server logic, as well as for debugging server-side applications. The current stable version is 6.6.0. The project maintains a consistent release cadence, frequently delivering minor versions and patch updates to address features, bug fixes, and performance improvements, as evidenced by the regular 6.x releases. A core differentiator of this library is its ability to interact directly with an `http.createServer` dispatch function, effectively injecting fake request and response objects without relying on actual socket connections. It provides flexibility by supporting both traditional callback-based request handling and modern Promise-based (async/await) patterns, alongside a fluent, chainable API for constructing complex requests.","language":"javascript","status":"active","version":"6.6.0","tags":["javascript","http","inject","fake","request","server","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install light-my-request","imports":["import { inject } from 'light-my-request'","import type { DispatchFunc } from 'light-my-request'","import * as LightMyRequest from 'light-my-request'"]},{"cmd":"yarn add light-my-request","imports":[]},{"cmd":"pnpm add light-my-request","imports":[]}],"homepage":null,"github":"https://github.com/fastify/light-my-request","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/light-my-request","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/light-my-request/compatibility"}}