indent-string is a JavaScript utility that indents every line in a string. It’s useful for formatting multi-line text, letting you choose the indent width (count) and the indent character, with an option to include or skip empty lines.
Project status
- Maintenance status: The source shows no recent updates relative to today (latest listed change is v5.0.0 from 2021-04-17, and the last upstream push was 2022-06-05), suggesting it is quiet/dormant rather than actively maintained.
- Update cadence: Updates appear to come in sparse, multi-year intervals (notably 2017 v3.2.0, 2019 v4.0.0, 2021 v5.0.0), with a long gap since then.
AI summary generated
Recent updates
v5.0.0
v5.0.0 converts indent-string to pure ESM and raises the minimum supported Node.js version to 12. The implementation also changes the way options are handled and adds additional argument validation.
Breakingv4.0.0
v4.0.0 bumps the package to require Node.js 8 and introduces TypeScript definitions for the indent-string API. The runtime implementation also got refactored to use default parameters and a new options object shape. While the release notes mention Node.js 8 and TypeScript typings, the actual code changes include an undocumented breaking behavior change to how the third argument is interpreted.
BreakingFeaturesv3.2.0
Release v3.2.0 was published on 2017-07-23, but the publisher did not provide any release notes or change descriptions. As a result, there is no documented information here about new features, bug fixes, breaking changes, or security updates.