detect-indent
Detect the indentation of code in files.
- Status
- Generally available
- Last checked
- Checked · Oct 15, 2026
- License
- Open source
- Pricing
- Free tier · from $0
What it is
A tool to detect the type and size of indentation used in source code files. Useful for maintaining consistent coding styles across projects.
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.
When it fits — and when it doesn’t
A good fit 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.
Look elsewhere if
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.
Known weaknesses
Each one links to the public issue, changelog or docs page it came from, where we have one.
- 01
Limited language support
The tool is primarily built for JavaScript and may not accurately detect indentation in other languages without significant configuration.
- 02
Poor documentation
The official documentation lacks comprehensive examples and best practices, making it difficult for new users to understand how to use the tool effectively.
- 03
Complex setup process
Setting up the tool requires manual configuration of dependencies and environment variables which can be cumbersome for less experienced developers.
What it does well
Detects both spaces and tabs as indentation types.
Returns the size of detected indentations (e.g., number of 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.
Performance benchmarks
How Fast Is It?
Set up detect-indent
Setup steps, common gotchas and what to check after 30 days.
Get the badge
A small badge for detect-indent’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.
Markdown
[](https://navigateaitools.com/explorer/tool/detect-indent)HTML
<a href="https://navigateaitools.com/explorer/tool/detect-indent"><img src="https://navigateaitools.com/badge/detect-indent.svg" alt="detect-indent — tracked on AI Navigator" height="58"></a>