detect-indent

Detect the indentation of code in files.

EstablishedOpen SourceLow lock-in

Pricing

See website

Flat rate

Adoption

Stable

License

Open Source

Data freshness

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.

Honest assessment

Strengths & Weaknesses

↑ Strengths

Detects both spaces and tabs as indentation types.

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

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

None

Starts at

See website

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Alternatives

Next step

Get Started with detect-indent

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

View Setup Guide →