ts-dedent is a lightweight TypeScript library for removing excessive indentation from template literals. It simplifies writing cleaner, more readable code, especially when working with multi-line strings or code snippets. By automatically stripping leading whitespace based on the shortest line indent, ts-dedent enhances code maintainability and reduces visual clutter. This is useful for configuration files, code generation, and any scenario where well-formatted strings are essential, resulting in improved code clarity and developer experience.
The ts-dedent package has had infrequent releases. Initial releases occurred in 2018-2021 with occasional subsequent releases. There have been no releases since August 2021. The last version published was 2.2.0. There has been no activity at all in 2022, 2023, 2024, and 2025.
ts-dedent npm package downloads show consistent growth from March 2024 to August 2025, ranging from 20 million to over 40 million monthly downloads. September 2025 downloads are significantly lower, likely due to incomplete data for the month. The package shows a strong and increasing trend in usage.