Back to Explore

sindresorhus/indent-string

GitHub
1 watchersOpen source

Last release: 4/17/2021

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

  • The upstream repository shows an old last push (2022-06-05), and the most recent tagged update in the provided data is v5.0.0 from 2021-04-17, suggesting the project is not actively shipping frequent updates.
  • Apparent update cadence is relatively slow (v3.2.0 in 2017, v4.0.0 in 2019, v5.0.0 in 2021). The gap since the latest provided update suggests a stable or maintenance-oriented trajectory rather than rapid iteration.

AI summary generated Today

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

Recent updates

  • v5.0.0

    4/17/2021

    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.

    Breaking
  • v4.0.0

    4/17/2019

    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.

    BreakingFeatures
  • v3.2.0

    7/23/2017

    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.