indent-string is a lightweight Node.js package meticulously crafted for efficient string manipulation. Its core function is adding indentation to each line within a given string, based on user-defined specifications. You can control the indentation string (e.g., spaces, tabs) and its quantity. This utility proves invaluable when formatting code, generating structured data, or enhancing the readability of text-based output. Its simplicity and focused functionality allow for seamless integration into diverse Node.js projects, enhancing code clarity and maintainability.
The indent-string npm package has had sporadic releases since June 2014. Initial rapid development slowed after 2015. Version 3.0.0 came in June 2016, followed by versions 3.1.0 and 3.2.0 in January and July 2017, respectively. Version 4.0.0 was released in April 2019, and the latest release, version 5.0.0, was in April 2021. There have been no releases since.
Indent-string's npm package downloads show a general upward trend from March 2024 to July 2025, peaking in June 2025. August 2025 saw a decrease, and September 2025's partial data indicates a significant drop, likely due to the month not being complete yet.