Skip to content
JS
Package

detect-indent

Detect the indentation of code

v7.0.2, 16 Sept 2025MITESM onlyTypes: Bundled
$ npm install detect-indent

Key numbers

As of 25 Sept 2026
Weekly downloads
19.9m
+34% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v7.0.2
GitHub stars
198
27 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 26.8m (25 Aug 2026)Low 8.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

19,923,612 downloads last week, 95,309,475 in the last month. The 12-month change of +34% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
018 in total
Latest version
7.0.2, 16 Sept 20251 year ago
First published
11 Aug 2013
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
2
Dependents on npm
971

Major versions

  1. v7 first release 7.0.0, 8 Aug 2021
  2. v6 first release 6.0.0, 30 Apr 2019
  3. v5 first release 5.0.0, 20 Oct 2016
  4. v4 first release 4.0.0, 7 Sept 2015
  5. v3 first release 3.0.0, 23 Nov 2014
  6. v2 first release 2.0.0, 26 Oct 2014
  7. v1 first release 1.0.0, 11 Sept 2014
  8. v0 first release 0.1.0, 11 Aug 2013

Recent releases

VersionPublished
7.0.216 Sept 2025
7.0.111 Sept 2022
7.0.08 Aug 2021
6.1.028 May 2021
6.0.030 Apr 2019
5.0.020 Oct 2016
4.0.07 Sept 2015
3.0.116 Feb 2015
3.0.023 Nov 2014
2.0.026 Oct 2014
1.0.13 Oct 2014
1.0.011 Sept 2014
0.2.016 Jun 2014
0.1.429 Apr 2014
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12.20
Runtimes
-
Unpacked size (npm)
9.7 kB
Dependencies (0)
None
npm install detect-indent
  • jsDelivrhttps://cdn.jsdelivr.net/npm/detect-indent@7.0.2/
  • unpkghttps://unpkg.com/detect-indent@7.0.2/
  • esm.shhttps://esm.sh/detect-indent@7.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.