Updated
On this page
Shared name-normalization utilities for release targets, handling package name canonicalization across different registry naming conventions.
#rlsbl.targets.utils
#rlsbl.targets.utils
Shared name-normalization utilities for release targets, handling package name canonicalization across different registry naming conventions.
#normalize_npm
python
def normalize_npm(name)Normalize an npm package name for similarity comparison.
Strips hyphens, underscores, dots, and lowercases.
#normalize_pypi
python
def normalize_pypi(name)Normalize a PyPI package name per PEP 503.
Lowercases and replaces runs of [-_.] with a single hyphen.
#normalize_go
python
def normalize_go(name)Normalize a Go module path to a short name.
Takes a module path like 'github.com/user/repo' and returns the last path segment lowercased (e.g., 'repo').