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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for npm_login-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81396aaf49839bf991489fcbe06b1f1beb809762c8c0e8ba36bfa2f590567ee7
MD5 a8abf1c9cf9b7f54d9ba6b342eb1d479
BLAKE2b-256 2c5d3ff66678f1b1ba8a0e27f07282fbd0ba96f91ef50b0bdc9ad614f5a27992

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