clean-git-ref sanitizes Git references (branches, tags) by removing invalid characters and enforcing length limits according to Git's rules. It ensures refs are valid before creation, preventing errors in Git operations. This package offers a simple, reliable way to clean Git references, improving script robustness and compatibility. It's lightweight and has no external dependencies. Ideal for automating Git workflows.
The clean-git-ref npm package had initial releases in April 2016 (3 versions). A single version was released in January 2019. No releases have occurred since January 2019 up to August 2025. The package appears to be inactive with no recent updates.
Clean-git-ref npm package downloads show a generally increasing trend from March 2024 to August 2025. Downloads grew from 1.8 million to nearly 3.1 million by July 2025, with a slight dip to 2.9 million in August 2025. August's data is incomplete.