Skip to main content

Simulates `npm login` command behavior with support only for legacy authentication

Project description

Replacement for npm login

Simulates npm login command behavior, supporting only legacy authentication with a username and password.

Motivation

  • Npm encounters an issue with usernames containing "non-url-safe" characters, displaying a "Name may not contain non-url-safe chars" warning and prompting for a new username. The previously suggested workaround is no longer working. While Yarn avoids this bug, installing it solely for authentication is inconvenient and cumbersome.

  • Eliminate the need to install npm for authentication, for example when using alternative runtimes like Bun.

Install

Using uv:

uv tool install npm-login
~/.local/bin/npm-login --help

Using pip:

python3 -m venv .venv
source .venv/bin/activate
# Or with fish:
# source .venv/bin/activate.fish
pip install npm-login
npm-login --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npm_login-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file npm_login-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: npm_login-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for npm_login-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbee0764d5edebb6dcccddf6598c2a03a81937025a70fbd1b7692d6c1aed50bd
MD5 c5f5f1b3bd5e40eb1a5fdccaa15140e0
BLAKE2b-256 f92c3e3ec5e3eb25ea06f8ca73f38d6786db6b891722010f4505016316fe1549

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page