npm-loginer

Login into npm from the non-interactive scripts

Usage no npm install needed!

<script type="module">
  import npmLoginer from 'https://cdn.skypack.dev/npm-loginer';
</script>

README

npm-login-cmd

A simple script to login into npm from the command line, in case you don't have an interactive shell, expect or anything fancy.

Usage

export NPM_USER=john
export NPM_PASS=secret
export NPM_EMAIL=john@example.com
npx npm-loginer

How it works

It's a simple child process that reads/writes from/to the stdout/stdin.