Frontend Frameworks

indent-string

Indent each line in a string for cleaner code formatting.

Status
Generally available
Last checked
Checked · Nov 28, 2026
License
Open source
Pricing
Free tier · from $0

What it is

A simple utility to indent every line of a given string by a specified number of spaces. This is useful for generating properly formatted text or code blocks, especially when dealing with multi-line strings in programming.

indent-string offers a lightweight, focused solution for string indentation in JavaScript projects, making it ideal for developers who need precise control over text formatting without the overhead of larger libraries.

Maintenance status

Generally available

Evidence: Actively maintained open-source project.

Read from github.com/sindresorhus/indent-string ↗ · last commit Nov 15, 2026 · repository read Nov 28, 2026

Last checked Nov 28, 2026 by an automated check of its repository, package or website.

Recent changes

Detected by our checks or published by the project, each with its date and source.

  1. indent-string is maintained again

    Actively maintained open-source project.

    Source: github.com/sindresorhus/indent-string ↗

When it fits — and when it doesn’t

A good fit for

  • Developers working with JavaScript who need to format multi-line strings for documentation or logging purposes.

  • Projects that require dynamic generation of indented text content.

Look elsewhere if

  • Use cases requiring complex text transformations beyond simple indentation.

  • Scenarios where a full-fledged text processing library is needed.

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited functionality for complex text manipulations

    The tool only supports basic indentation and lacks advanced text formatting features.

  2. 02

    Small community and limited support

    Given its simplicity, the project has a small user base and fewer contributors which can lead to slower issue resolution and feature requests.

  3. 03

    No built-in support for tab indentation

    The tool only supports spaces for indentation, requiring manual conversion if tabs are preferred.

What it does well

  • Indent each line in a string by a specified number of spaces.

  • Supports custom indentation characters (not just spaces).

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Set up indent-string

No step-by-step guide on file yet — the setup page points to the official docs and sign-up.

Open the setup guide →
Get the badge

A small badge for indent-string’s README or site: its name, “Tracked on AI Navigator”, and the availability status and check month from this page. It updates as the catalog does.

indent-string — tracked on AI Navigator

Markdown

[![indent-string — tracked on AI Navigator](https://navigateaitools.com/badge/indent-string.svg)](https://navigateaitools.com/explorer/tool/indent-string)

HTML

<a href="https://navigateaitools.com/explorer/tool/indent-string"><img src="https://navigateaitools.com/badge/indent-string.svg" alt="indent-string — tracked on AI Navigator" height="58"></a>