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
npmfor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbee0764d5edebb6dcccddf6598c2a03a81937025a70fbd1b7692d6c1aed50bd
|
|
| MD5 |
c5f5f1b3bd5e40eb1a5fdccaa15140e0
|
|
| BLAKE2b-256 |
f92c3e3ec5e3eb25ea06f8ca73f38d6786db6b891722010f4505016316fe1549
|