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
Metadata
Release files for npm-login 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| npm_login-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for npm_login-0.1.2-py3-none-any.whl |
Release files / npm_login-0.1.2-py3-none-any.whl
| Download URL | npm_login-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbee0764d5edebb6dcccddf6598c2a03a81937025a70fbd1b7692d6c1aed50bd
|
|
BLAKE2b-256 checksum How to use checksums |
f92c3e3ec5e3eb25ea06f8ca73f38d6786db6b891722010f4505016316fe1549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for npm-login 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.