no-official-npm-registry
If you're using private registries (like verdaccio) in your work environment you probably don't want to fetch
dependencies from the official one. This tools verifies that no dependency in your project is fetched fromregistry.npmjs.org
.
Usage
Use this command from a root directory of a project to be verified:
$ npx no-official-npm-registry
You will receive non-zero exit code if any dependency in your lockfile (or npm-shrinkwrap.json) is resolved from official npm registry.
Also you can install this tool globally with npm install --global no-official-npm-registry
If installed globally, no-official-npm-registry
will be available as a CLI command.
You can check against different registry by defining NPM_UNWANTED_REGISTRY
environment variable.