npm-registry-mock offers a lightweight, configurable mock for npm registries, ideal for testing npm package installations and interactions without relying on a live registry. It allows simulating various registry behaviors, including package availability, versions, and error scenarios. This simplifies integration tests and prevents network dependencies from impacting test reliability, ensuring repeatable and isolated test environments. Useful for CI/CD pipelines where predictability is highly valued when testing publishing or consuming packages.