GitShow/sindresorhus/detect-indent
sindresorhus

detect-indent

Detect the indentation of code

by sindresorhus
Star on GitHubForknpm

JavaScript

199 stars26 forks13 contributorsQuiet · 5mo agoSince 2013v7.0.2MIT

Meet the team

See all 13 on GitHub →
sindresorhus
sindresorhus61 contributions
julien-f
julien-f3 contributions
SamVerschueren
SamVerschueren2 contributions
brandon93s
brandon93s1 contribution
eventualbuddha
eventualbuddha1 contribution
BendingBender
BendingBender1 contribution
ethan-vanderheijden
ethan-vanderheijden1 contribution
FR6
FR61 contribution

Languages

View on GitHub →
JavaScript96.7%
CSS1.7%
TypeScript1.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
sindresorhus
More testcasesClosedIssue

https://github.com/gfxmonk/indent-finder/tree/master/test_files ? Need more test-cases, especially failing ones, that proves it works ok in the wild.

sindresorhus · 5mo ago
umpox
Single character indents are no longer ignored.ClosedIssue

Consider this test: I would expect that the incoming indent would be . The multi-line comment means that we return as the indent amount

umpox · 9mo ago
ethan-vanderheijden
Add link to Python port in README.MergedPR

Lovely project! I wrote a port for Python and published it on PyPI. It would be nice if you could link it in your readme.

ethan-vanderheijden · 2y ago
Structured data for AI agents

Repository: sindresorhus/detect-indent. Description: Detect the indentation of code Stars: 199, Forks: 26. Primary language: JavaScript. Languages: JavaScript (96.7%), CSS (1.7%), TypeScript (1.6%). License: MIT. Latest release: v7.0.2 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, julien-f, SamVerschueren, brandon93s, eventualbuddha, BendingBender, ethan-vanderheijden, FR6, gwhitney, mathiasbynens and others.

·@ofershap

Replace github.com with gitshow.dev