redent is a small npm package that normalizes indentation in strings. It strips redundant indentation and then indents the result, with options to control the indent string, how many times indentation is repeated, and whether empty lines are also indented.
Project status
- The source
sindresorhus/redentappears to be dormant, with its most recent GitHub update on 2021-05-03 (v4.0.0). Relative to 2026-09-10, there is no evidence of ongoing maintenance. - Update cadence looks effectively halted, after releases in 2021 (v4.0.0), previously 2019 (v3.0.0), and 2016 (v2.0.0). There is no sign of recent or regular updates in the provided history.
AI summary generated
Recent updates
v4.0.0
v4.0.0 switches the package to pure ESM and raises the minimum supported Node.js version to 12. The implementation is now a default export ESM function, and the TypeScript typings were reshaped accordingly. Several dependency and tooling versions were also bumped, but these are not mentioned in the release notes.
Breakingv3.0.0
v3.0.0 drops support for older Node.js versions and changes the public API to accept an options object as the third argument instead of a raw indent string. It also adds TypeScript definitions and updates the implementation to delegate to newer versions of strip-indent and indent-string.
BreakingFeaturesv2.0.0
Release v2.0.0 was published, but no release notes content was provided by the publisher. As a result, there is no documented information available here about new features, bug fixes, breaking changes, security updates, or migrations. To assess upgrade risk, you should compare this tag against the previous release in the repository to identify code changes that may affect developers.