no-official-npm-registry

1.0.4 • Public • Published

no-official-npm-registry

npm version Build Status Dependencies License


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.

Readme

Keywords

Package Sidebar

Install

npm i no-official-npm-registry

Weekly Downloads

7

Version

1.0.4

License

MIT

Unpacked Size

5.01 kB

Total Files

6

Last publish

Collaborators

  • rafalmaciejewski