Back to Explore

sindresorhus/redent

GitHub
1 watchersOpen source

Last release: 5/3/2021

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 last recorded update is v4.0.0 on 2021-05-03, which indicates no recent maintenance activity beyond that point (so it may be in maintenance mode or effectively stable, but active upkeep is not evident from the provided evidence).
  • The apparent update cadence is sparse: major updates occurred in 2016 (v2.0.0), 2019 (v3.0.0), and 2021 (v4.0.0), with a multi-year gap between changes.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.0.0

    5/3/2021

    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.

    Breaking
  • v3.0.0

    4/26/2019

    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.

    BreakingFeatures
  • v2.0.0

    7/10/2016

    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.