detect-indent

Detect the indentation of code in files.

EstablishedOpen SourceLow lock-in

Pricing

Free tier

Flat rate

Adoption

Cooling

License

Open Source

Data freshness

Aging · Jun 8, 2026

Overview

What is detect-indent?

A tool to detect the type and size of indentation used in source code files. Useful for maintaining consistent coding styles across projects.

Key differentiator

detect-indent stands out for its simplicity and effectiveness in detecting indentation types and sizes directly from code files, making it a valuable addition to any developer's toolkit for maintaining coding standards.

Capability profile

Capability Radar

Ease of StartEcosystemValueMaturityFlexibilityScale Ready

Honest assessment

Strengths & Weaknesses

↑ Strengths

Detects both spaces and tabs as indentation types.medium

Returns the size of detected indentations (e.g., number of spaces).medium

↓ Weaknesses

Limited language supporthigh

The tool is primarily built for JavaScript and may not accurately detect indentation in other languages without significant configuration.

Poor documentationmedium

The official documentation lacks comprehensive examples and best practices, making it difficult for new users to understand how to use the tool effectively.

Complex setup processlow

Setting up the tool requires manual configuration of dependencies and environment variables which can be cumbersome for less experienced developers.

Fit analysis

Who is it for?

✓ Best for

Developers working on multiple projects with varying indentation styles who need to quickly detect and standardize them.

CI/CD pipeline developers looking for a reliable way to check code style consistency.

✕ Not a fit for

Projects that do not require consistent coding styles or where manual checking is sufficient.

Developers working in environments without Node.js support, as the tool requires it.

Cost structure

Pricing

Free Tier

Available

Open source — free to use

Starts at

$0

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Alternatives

Works well with

Next step

Get Started with detect-indent

Step-by-step setup guide with code examples and common gotchas.

View Setup Guide →