github-slugger is a lightweight JavaScript library for generating GitHub-compatible URL slugs from strings. It's perfect for creating anchor links or heading IDs in markdown documents or websites. The package ensures that generated slugs are unique within a document, incrementing a counter when necessary to avoid collisions. Simplicity and focused functionality make it an ideal choice for developers who need reliable slug generation without unnecessary dependencies.
Github-slugger's release frequency is sporadic. Initial releases occurred between September 2015 and April 2016. Releases continued intermittently until September 2017. There was then a large gap of over a year until January 2019. Further releases happened in February 2020, August 2021 and October 2022, with no releases since.
Github-slugger downloads show a strong upward trend from February 2024 to October 2024, peaking at almost 30 million. Downloads then decreased through February 2025 before stabilizing around 22-23 million. July 2025 saw a slight increase and August 2025 downloads are incomplete.