light-my-request
npmv6.6.0TypeScriptFake HTTP injection library
Adopt with care
light-my-request is usable, with caveats. Last published 569 days ago. 8 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 569 days ago. 8 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 3 transitive packages, about 268 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 11 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
BSD-3-Clause — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding light-my-request to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing light-my-request, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the light-my-request README.
const http = require('node:http')
const inject = require('light-my-request')
const dispatch = function (req, res) {
const reply = 'Hello World'
res.writeHead(200, { 'Content-Type': 'text/plain', 'Content-Length': reply.length })
res.end(reply)
}
const server = http.createServer(dispatch)
inject(dispatch, { method: 'get', url: '/' }, (err, res) => {
console.log(res.payload)
})light-my-request vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| light-my-requestthis page | 0 | 1 | BSD-3-Clause | 1 year ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
| make-fetch-happen | 22.8M | 1 | ISC | 1 day ago |
| @mswjs/interceptors | 20.3M | 1 | MIT | 1 day ago |
| pac-proxy-agent | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by light-my-request v6.6.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (15)
Used by
Popular packages that depend on light-my-request.
Relationship graph
Dependencies (left) and dependents (right) of light-my-request.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Manipulate the HTTP Vary header
Really Fast Deep Clone
A small utility for creating warnings and emitting them.
Build and manage the fast-json-stringify instances for the fastify framework
LRU and FIFO caches for Client or Server
Build and manage the AJV instances for the fastify framework
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
Determine the address of a proxied request
A noop logger that conforms to the Log4j interface for modules to stub out internal logging
Release history
4 releases in the last two years, typically about 35 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.6.0latest | 1 year ago | 147 KB | BSD-3-Clause |
| 6.5.1 | 1 year ago | 146 KB | BSD-3-Clause |
| 6.5.0 | 1 year ago | 146 KB | BSD-3-Clause |
| 6.4.0 | 1 year ago | 145 KB | BSD-3-Clause |
| 6.3.0 | 1 year ago | 137 KB | BSD-3-Clause |
| 6.2.0 | 1 year ago | 136 KB | BSD-3-Clause |
| 6.1.0 | 1 year ago | 127 KB | BSD-3-Clause |
| 5.14.0 | 1 year ago | 127 KB | BSD-3-Clause |
| 6.0.0 | 2 years ago | 127 KB | BSD-3-Clause |
| 6.0.0-pre.fv5.1 | 2 years ago | 127 KB | BSD-3-Clause |
| 5.13.0 | 2 years ago | 127 KB | BSD-3-Clause |
| 5.12.0 | 2 years ago | 120 KB | BSD-3-Clause |
| 5.11.1 | 2 years ago | 120 KB | BSD-3-Clause |
| 5.11.0 | 3 years ago | 120 KB | BSD-3-Clause |
| 5.10.0 | 3 years ago | 117 KB | BSD-3-Clause |
Overview
light-my-request is an npm package that fake HTTP injection library. It has 1 known dependents in the graph. The latest version is 6.6.0, released under the BSD-3-Clause license.
Who should use it
Teams working in the npm ecosystem who need fake HTTP injection library and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (BSD-3-Clause).
Cons
- Large dependency tree (18 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use light-my-request?
light-my-request is usable, with caveats. Last published 569 days ago. 8 releases in the last 2 years.
How do I install light-my-request?
Run `npm install light-my-request` to add light-my-request to your npm project.
How many dependencies does light-my-request have?
light-my-request declares 18 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 268 KB on disk.
What license is light-my-request released under?
light-my-request is distributed under the BSD-3-Clause license.
How popular is light-my-request?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on light-my-request.
Is light-my-request still maintained?
The most recent release of light-my-request (v6.6.0) was published 1 year ago.
Does light-my-request run install scripts?
No. light-my-request does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.