redent

Strip redundant indentation and indent the string

v4.0.0 MIT 4 versions Maintained by sindresorhus
  • string
  • strip
  • trim
  • indent
  • indentation
  • add
  • reindent
  • normalize
  • remove
  • whitespace
  • space
Weekly downloads
69.3M +1%
vs previous week
Last 30 days
264.8M
Stars

Downloads

2.2B total · Aug 31, 2025 – Aug 31, 2026

Downloads by version

Last 7 days

Versions

4 releases published since Sep 29, 2015

Commit activity

Last 12 months

Contributors

Top 10

Issues