dedent is a small but mighty JavaScript utility for removing excess indentation from template literals. It's perfect for cleaning up multiline strings within your code, making them more readable and maintainable. dedent automatically removes the common leading whitespace from each line, resulting in a neatly formatted string without manual indentation fiddling. This simplifies embedding code snippets, configuration files, or any multiline text directly into your JavaScript applications.
The dedent npm package had an initial flurry of releases in early 2015, followed by sporadic releases until 2017. Release activity ceased for several years before a burst of releases in July 2023. Since then, releases have been infrequent, with only one release in April 2024 and May 2025. Overall, the package's release frequency is inconsistent with long periods of inactivity interspersed with concentrated release periods.
Dedent's npm package saw consistent growth from March 2024 to August 2025, peaking in July 2025 at 174.7 million downloads. September 2025 shows a significant drop to 34.7 million, likely due to incomplete data for the current month. The package consistently exceeded 100 million downloads monthly since April 2024.