</>PackageGraphPackageGraph

light-my-request

npmv6.6.0TypeScript

Fake 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.

3
Direct dependencies

Runtime packages this one declares itself.

3
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

268 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
light-my-requestthis page01BSD-3-Clause1 year ago
node-fetch172.9M9MIT1 day ago
undici158.5M15MIT1 day ago
make-fetch-happen22.8M1ISC1 day ago
@mswjs/interceptors20.3M1MIT1 day ago
pac-proxy-agent01MIT1 day ago

Dependencies

Declared by light-my-request v6.6.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (15)

@fastify/ajv-compiler ^4.0.0@fastify/pre-commit ^2.1.0@types/node ^22.7.7c8 ^10.1.2end-of-stream ^1.4.4eslint ^9.17.0express ^4.19.2form-auto-content ^3.2.1form-data ^4.0.0formdata-node ^6.0.3multer ^1.4.5-lts.1neostandard ^0.12.0tinybench ^3.0.0tsd ^0.31.0undici ^7.0.0

Used by

Popular packages that depend on light-my-request.

Relationship graph

Dependencies (left) and dependents (right) of light-my-request.

cookieprocess-warningset-cookie-parserfastifylight-my-request
light-my-request dependencies dependents

Frequently installed together

Release history

4 releases in the last two years, typically about 35 days apart.

Recent versions of light-my-request
VersionPublishedSizeLicense
6.6.0latest1 year ago147 KBBSD-3-Clause
6.5.11 year ago146 KBBSD-3-Clause
6.5.01 year ago146 KBBSD-3-Clause
6.4.01 year ago145 KBBSD-3-Clause
6.3.01 year ago137 KBBSD-3-Clause
6.2.01 year ago136 KBBSD-3-Clause
6.1.01 year ago127 KBBSD-3-Clause
5.14.01 year ago127 KBBSD-3-Clause
6.0.02 years ago127 KBBSD-3-Clause
6.0.0-pre.fv5.12 years ago127 KBBSD-3-Clause
5.13.02 years ago127 KBBSD-3-Clause
5.12.02 years ago120 KBBSD-3-Clause
5.11.12 years ago120 KBBSD-3-Clause
5.11.03 years ago120 KBBSD-3-Clause
5.10.03 years ago117 KBBSD-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

Keywords

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.