pnpm/pnpm-registry-mock

Mock the npm registry

22

stars

452

commits

JavaScript

primary language

Apr 8, 2026

updated

README

@pnpm/registry-mock

Mock the npm registry

Installation

pnpm add @pnpm/registry-mock

API

getIntegrity(pkgName, pkgVersion): string

CLI

Preparing a fresh storage: registry-mock prepare

Running the registry mock: registry-mock

By default, https://registry.npmjs.org/ is used to download packages. A custom uplink can be set via the PNPM_REGISTRY_MOCK_UPLINK env variable.

The registry mock will listen on port 4873, unless a different port is specified via the PNPM_REGISTRY_MOCK_PORT env variable.

License

MIT

Contributors

zkochan

429 commits

KSXGitHub

16 commits

juanpicado

2 commits

gluxon

2 commits

pnpm/pnpm-registry-mock

Mock the npm registry

22

stars

452

commits

JavaScript

primary language

Apr 8, 2026

updated

README

@pnpm/registry-mock

Mock the npm registry

Installation

pnpm add @pnpm/registry-mock

API

getIntegrity(pkgName, pkgVersion): string

CLI

Preparing a fresh storage: registry-mock prepare

Running the registry mock: registry-mock

By default, https://registry.npmjs.org/ is used to download packages. A custom uplink can be set via the PNPM_REGISTRY_MOCK_UPLINK env variable.

The registry mock will listen on port 4873, unless a different port is specified via the PNPM_REGISTRY_MOCK_PORT env variable.

License

MIT

Contributors

zkochan

429 commits

KSXGitHub

16 commits

juanpicado

2 commits

gluxon

2 commits

Languages

JavaScript

53.7%

TypeScript

34.6%

Shell

10.1%

Python

1.6%