registry-login

A command-line utility to login into any public or private NPM registry

Usage no npm install needed!

<script type="module">
  import registryLogin from 'https://cdn.skypack.dev/registry-login';
</script>

README

Registry Login

A command-line utility to login into any public or private NPM registry

Usage

Call it directly to login into the public npm registry:

npx registry-login

Or pass a private registry to it:

npx registry-login https://private-registry

In both situations it will update the local ~/.npmrc file with the token for the corresponding registry, which both npm and yarn use to login.