{"_id":"detect-indent","_rev":"55-97d99e68df78b7a074f7a7ed8e758ce3","name":"detect-indent","dist-tags":{"latest":"7.0.2"},"versions":{"0.1.0":{"name":"detect-indent","version":"0.1.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"dist":{"shasum":"b071bdece3312b9669147950e7aefb2e5d392327","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.0.tgz","integrity":"sha512-VelZU4Y9WE9S2BLhMZx0c1OtBbzlbK3tXsHkdPW0vFYTEYGc3zV5kA5PtGOikx10ye40VGdhzlW1DSSDgkHZQg==","signatures":[{"sig":"MEYCIQDTUEwvn1vQfIoC83Cs+6rcKPiZB6PYhyZ9ObIc0pJy4AIhAOLdCNhOkELQqZn+RJ6gTgqumDcnLA7msQa5SM0UUTV9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"detect-indent","_from":".","files":["detect-indent.js"],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"1.2.32","description":"Detect the indentation of code","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0","phantomjs":"~1.9.1","mocha-phantomjs":"~3.1.0"}},"0.1.1":{"name":"detect-indent","version":"0.1.1","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.1.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"dist":{"shasum":"55316047de5171c613a3a205af6a6fcfcda2710d","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.1.tgz","integrity":"sha512-JDYCNiUDzOCgWzxKFvg0ocLtorA8ABvQv4/HuBXNXpxwJ1O/coYOCOvsI7I8Hk3WFNlEYXiYDFC44s85SzkdaQ==","signatures":[{"sig":"MEYCIQDTEQnPhq55Il7vdjDkRFlch9SkDlR8cjlxL1l25uGPfQIhAOPJMlY56BGbef2yTWAjUbzbayiqVsP1E5U/azzAnBQL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"detect-indent","_from":".","files":["detect-indent.js"],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"1.2.32","description":"Detect the indentation of code","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0","phantomjs":"~1.9.1","mocha-phantomjs":"~3.1.0"}},"0.1.2":{"name":"detect-indent","version":"0.1.2","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.1.2","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"dist":{"shasum":"b9c31d35d514df22a8ec3725783da824c5f23c03","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.2.tgz","integrity":"sha512-naJkgD8AlubWQvLoLrtVzW3PEjhxaFUnL0sw22NdXUKuKKwNw9k3Y88HNaFM+mic1ZCi4JcizmlBvnJInBE03w==","signatures":[{"sig":"MEYCIQCl+MQnPW/Gdu4C8jWnj7E/azj3FX8pamYWoGtrM/hYNQIhAMhRjSonTgb5JxkJKWh7at37PcyWlon8B8ShJu8G7i3Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"detect-indent","_from":".","files":["detect-indent.js"],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"1.3.8","description":"Detect the indentation of code","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0","phantomjs":"~1.9.1","mocha-phantomjs":"~3.1.0"}},"0.1.3":{"name":"detect-indent","version":"0.1.3","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.1.3","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"dist":{"shasum":"76e6cf5a5fc734e3b4eec4060a43ecd32ecad9f9","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.3.tgz","integrity":"sha512-oE//SJwE5jroQLdy2PvS1bsS6v6ZoxHEJIIgH40p0qU2TE74iz+FPZsWuiWivnBKDU+Y1FncMLjHM4d+rUWNAQ==","signatures":[{"sig":"MEQCIF8VzlJGq1ZveWjb2i/4gVTxCGAmC0miA5m/g+GdydlnAiAyg6FTxFg7c2xU6seRVSQdAKZu7LzJRe7I7LUFWPgDBg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"detect-indent","_from":".","files":["detect-indent.js"],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"1.3.10","description":"Detect the indentation of code","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0","phantomjs":"~1.9.1","mocha-phantomjs":"~3.1.0"}},"0.1.4":{"name":"detect-indent","version":"0.1.4","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.1.4","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"dist":{"shasum":"c28e1303c1c4ad5ce0549902b884043afc5906b0","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.4.tgz","integrity":"sha512-l4ITFkcAEpUpmp40XheF+Epbp2tcResjhXYEJG2cuTNBk/JeN4gAdPPI8PgRj80Hc19l8SUPehfw30moSJXiug==","signatures":[{"sig":"MEQCIEkyqN7Zm0gARhlMj0IEY7NPLAfoRfxSlMtVs5BLgVcbAiABtWNMq8iPtOHc/ijSJBh1w4M0Tkoydnt0PYZ/A2sArQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"detect-indent","_from":".","files":["detect-indent.js"],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"1.4.6","description":"Detect the indentation of code","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0","phantomjs":"~1.9.1","mocha-phantomjs":"~3.1.0"}},"0.2.0":{"name":"detect-indent","version":"0.2.0","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@0.2.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"042914498979ac2d9f3c73e4ff3e6877d3bc92b6","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-0.2.0.tgz","integrity":"sha512-C6jyrDu/eGH4KT0ZxAzijiH+ts5YLy7DqGFoDuHGxZjMOdjzRltp3jByySnpFBVIy4Em0ZkLN8tIV6mcREdw5A==","signatures":[{"sig":"MEQCIHSEHAELzDU1AM1bWfKMRU3Or6ZFXxYT7Czy1RB2VYDdAiBQwczfM+WSQZCkuzUPAnz54BGn3amT20mwLX/NXkxVcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"042914498979ac2d9f3c73e4ff3e6877d3bc92b6","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"1.4.9","description":"Detect the indentation of code","directories":{},"dependencies":{"minimist":"^0.1.0","get-stdin":"^0.1.0"},"devDependencies":{"mocha":"*"}},"1.0.0":{"name":"detect-indent","version":"1.0.0","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"17f17ae5b44c740ae89bd386b495187b378a0456","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-1.0.0.tgz","integrity":"sha512-3s/lCXddZFbY1FRX73a40feShFzs5Lu26ggxTNAZo5NV9yYHbZ3tEZLFWtA8kxCM8JmJPtJpusvhMuygp8xsQQ==","signatures":[{"sig":"MEUCIQDLVanZrZh1Cz2jCfDb7OQrIs2bqatITkKNSQlkQKrUtQIgFMTtgliNiulkvYrwmQKaq7MQbs/+1R4TETDtiRL7X9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"17f17ae5b44c740ae89bd386b495187b378a0456","engines":{"node":">=0.10.0"},"gitHead":"86440344bcefa5245076e6c6516ac1b2d80a4ef1","scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"1.4.23","description":"Detect the indentation of code","directories":{},"dependencies":{"minimist":"^1.1.0","get-stdin":"^3.0.0","strip-comments":"^0.3.2"},"devDependencies":{"mocha":"*"}},"1.0.1":{"name":"detect-indent","version":"1.0.1","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@1.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"86f3496242b52c910d49876cb993add8bed1f1bd","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-1.0.1.tgz","integrity":"sha512-K6Cb68v66k6OJl20lO0qs/teJjuqOI9f1Qe8fSaCNcnw/ie+RRCuVNcfwBdk8Oxo/8peM8Piv5TLGz6SFtknJw==","signatures":[{"sig":"MEQCIGrw8oPcKAez8nemKqhELLZzf3y6hK20Pj+oah6suCBfAiBtFLID7XE5a67eJyadPB+8dSncRQFqAqbmFVH09WRo3Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"86f3496242b52c910d49876cb993add8bed1f1bd","engines":{"node":">=0.10.0"},"gitHead":"e9caef6f10d89963f55fc0d42e061d770e96683e","scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"2.1.2","description":"Detect the indentation of code","directories":{},"_nodeVersion":"0.10.32","dependencies":{"minimist":"^1.1.0","get-stdin":"^3.0.0","strip-comments":"^0.3.2"},"devDependencies":{"mocha":"*"}},"2.0.0":{"name":"detect-indent","version":"2.0.0","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"720ff51e4d97b76884f6bf57292348b13dfde939","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-2.0.0.tgz","integrity":"sha512-tTuFejvojJjHYDaYccBHwaK1Q3aGBzR4NJg19Q/rkGtyLDeO/LTqlncmDYIUjMSfqOqrGp9CiM93V83DD41oog==","signatures":[{"sig":"MEUCIQC4aNJcTfNutavmGZlSc48BHPhKF3RF5bsbPaWj5cjGKgIgCBWBHk6i1zP+5MdjJMXwwnb88BBs4M10EUYg80pg5Iw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"720ff51e4d97b76884f6bf57292348b13dfde939","engines":{"node":">=0.10.0"},"gitHead":"401f402f06ecc897ba6726440ec93375673d4cc0","scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"2.1.4","description":"Detect the indentation of code","directories":{},"_nodeVersion":"0.10.32","dependencies":{"minimist":"^1.1.0","get-stdin":"^3.0.0","repeating":"^1.1.0"},"devDependencies":{"mocha":"*"}},"3.0.0":{"name":"detect-indent","version":"3.0.0","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"7a12c4b61be4ebc170cd6d416ce43754124637d8","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.0.tgz","integrity":"sha512-50eGks9EYH/6AOsAQGEeRC2vVy43UWOBEEiAbTgqA7kXMOpm59YoZCcASBLz0dRIsfybz6sYk9coYcfSoX9nsA==","signatures":[{"sig":"MEYCIQCO656w/UEyTiApUrdByntlETfKo3PLHTua+7C0EaGdyQIhAKF2Jjz+bnjCTFl0B65kVRxWxQuClygTi29ViHoGa/ZZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"7a12c4b61be4ebc170cd6d416ce43754124637d8","engines":{"node":">=0.10.0"},"gitHead":"303b97bc44497bbfeb01eb4ea27753c82156aef6","scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"2.1.5","description":"Detect the indentation of code","directories":{},"_nodeVersion":"0.10.32","dependencies":{"minimist":"^1.1.0","get-stdin":"^3.0.0","repeating":"^1.1.0"},"devDependencies":{"mocha":"*"}},"3.0.1":{"name":"detect-indent","version":"3.0.1","keywords":["cli","bin","indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"http://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@3.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"bin":{"detect-indent":"cli.js"},"dist":{"shasum":"9dc5e5ddbceef8325764b9451b02bc6d54084f75","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.1.tgz","integrity":"sha512-xo3WP66SNbr1Eim85s/qyH0ZL8PQUwp86HWm0S1l8WnJ/zjT6T3w1nwNA0yOZeuvOemupEYvpvF6BIdYRuERJQ==","signatures":[{"sig":"MEUCIQD7N9c98f7Zeqtoc3R1l0QgGTc3Kc46aUM+hJhunRH5ewIgHNSJf6sT52+g70iSQfcGmlQ7VeAslS+41/QmiX5ft60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","cli.js"],"_shasum":"9dc5e5ddbceef8325764b9451b02bc6d54084f75","engines":{"node":">=0.10.0"},"gitHead":"c046bec94ac5eefeb67ae4501d556c8dcec2914e","scripts":{"test":"mocha"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"2.5.1","description":"Detect the indentation of code","directories":{},"_nodeVersion":"0.12.0","dependencies":{"minimist":"^1.1.0","get-stdin":"^4.0.1","repeating":"^1.1.0"},"devDependencies":{"mocha":"*"}},"4.0.0":{"name":"detect-indent","version":"4.0.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"ignores":["fixture/**"]},"dist":{"shasum":"f76d064352cdf43a1cb6ce619c4ee3a9475de208","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz","integrity":"sha512-BDKtmHlOzwI7iRuEkhzsnPoi5ypEhWAJB5RvHWe1kMr06js3uK5B3734i3ui5Yd+wOJV1cpE4JnivPD283GU/A==","signatures":[{"sig":"MEYCIQD9WVOLuOdQdYy9z6REF1kP0H1tSFb/xLABOIcBNjMHYQIhAJ5ebOYYXFRshipncrz9KeK7mcdGu/QIhclcJVI7RvfA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"f76d064352cdf43a1cb6ce619c4ee3a9475de208","engines":{"node":">=0.10.0"},"gitHead":"dbbc78fcb37907116eb120a8324070a1df0e8d86","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/detect-indent","type":"git"},"_npmVersion":"2.13.3","description":"Detect the indentation of code","directories":{},"_nodeVersion":"3.0.0","dependencies":{"repeating":"^2.0.0"},"devDependencies":{"xo":"*","ava":"*"}},"5.0.0":{"name":"detect-indent","version":"5.0.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@5.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent#readme","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"esnext":true},"dist":{"shasum":"3871cc0a6a002e8c3e5b3cf7f336264675f06b9d","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz","integrity":"sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==","signatures":[{"sig":"MEQCIHFnKspBR4323dp1YEHs/eKvaT+KShW85ewVpw3x48z5AiA/EQfendV93qce6kSE94jueidu2jsikGFwaqmT7Fn68g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"3871cc0a6a002e8c3e5b3cf7f336264675f06b9d","engines":{"node":">=4"},"gitHead":"6c7485c2e5b74abc11a8870b550a9d385beac9e0","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"2.15.9","description":"Detect the indentation of code","directories":{},"_nodeVersion":"4.6.0","devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/detect-indent-5.0.0.tgz_1476992892715_0.3219247553497553","host":"packages-18-east.internal.npmjs.com"}},"6.0.0":{"name":"detect-indent","version":"6.0.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@6.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent#readme","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"ignores":["fixture"]},"dist":{"shasum":"0abd0f549f69fc6659a254fe96786186b6f528fd","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-6.0.0.tgz","fileCount":5,"integrity":"sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==","signatures":[{"sig":"MEYCIQCNPfmFZX49GvwCGJy4dMjDHCul4vktBMN2M57zMg0ypwIhAOnHAwJteJKjIFEsx6FChv9MFZx5XKqtzjSwja9Kqlj9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyELcCRA9TVsSAnZWagAAJswP/3XOKqS/qO/ZmjvcbzWH\nApfud92neoQ1L5YhhZcs5ERoiQc6WvdrklTBFf9FDavo6UWq1lq5RoUx91fD\nG006HvmGJLXgFJLK7LjUo2jA1E1XuIsVv/eivWDb3BKaWvxOoU2q61ZYbjv2\nCsiMaumQ4zWZectJ6h0KWDA/9eraGJXmtgrqZJMv3AAlKEPaKC3tMpfDBb8J\ngDXLv1kH4+wDZpn+3K8PgrO/5sfm1ls+gcQyaiaPGkAvsfylsuDKNZ1mcLa7\nWmY1r4dbX73TkUXiv4dpTVGkg0PJp/Tb2xww4Uv590AkZcR1BzATjvNDpNvK\nDLeg8aynKVdhHDRiii9Zd+EdvKNLV8Avb957UErQd+60LI0HX2pINmbjK/lf\ngVsxHrQD3IfJIOlb82HjkLf1Fs0ZD2euAHXRb8MuhejsAmU+iVogksUpTK8i\nogBooPyPsp8iJctz0VoUiipOq/kDndZXQriF0yK7i3KEA0BzNLy2+fTPqV9i\nDeOJ1S6LVjghCbQa6fIAvQmiHl0iMeYHfuQ8n27aifvGaDaphkUiHlfotRk8\nCIVNhE9kWrWTk+J5845M2uCWDMMLs0lbHt3UaC4NiHvyNc86ACMuaOw0YE1m\nVSmU/J9fFDVAdiyt7UtOjWIwdAiVBWyhiXZU96PdSlzkhKQuhJoiL0haRtHd\n4Fcj\r\n=t2/o\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=8"},"gitHead":"e42875ce2ce2e3d63f6ecd4fe79150943340da9e","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"6.9.0","description":"Detect the indentation of code","directories":{},"_nodeVersion":"10.15.3","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/detect-indent_6.0.0_1556628188019_0.9294671604278244","host":"s3://npm-registry-packages"}},"6.1.0":{"name":"detect-indent","version":"6.1.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@6.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent#readme","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"ignores":["fixture"]},"dist":{"shasum":"592485ebbbf6b3b1ab2be175c8393d04ca0d57e6","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz","fileCount":5,"integrity":"sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==","signatures":[{"sig":"MEQCIHshVyQQCAzcUlDFfXYPwZ3VLhYWTxxdUo4rKEfJGbW3AiBYp1eR9EyPXhZSK08eUSDSXtrjh0Jjj7808qBAtjlLEQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsJFlCRA9TVsSAnZWagAAedcP/39EsTTRarr2FLKUACtr\nP4zJmROFnhG6HdsVpJ4kCx9jdG2Jq93LgwlL/JJfYbnhS0gMY9NwFbNiYz7n\nmFJR1jeOpGlW7xRIc79DZ1WVA0pFtOJ4Vm4u3ohOu3DRw3EWmJsruTTOrr+f\nF2VEL9sjk3ol1E2eB8lHoD3rHqZFkj6GJEJklPlyz8kYHeGudTl3206s/b1+\ny/8e5zAmm85xCNv7QAb57vWpe6R4FYM0VWBmtE8rjKmOdUwTKbjZ+lB04dPs\nR0VscU2GNLRm4OJDxoYtPFIW0RzM0508JzawXDvJJLQoUOcXq1uy6il11LFD\n8vM4MD3b78wpJ416NoVtBBpTFLZz8Prd7vXomme4FasrmzUKGJMN9aAVBKvK\n9LleHs3UCjzvO6PUq88tyFtEHkJqe8Xd/LJ+k1METrGazIWuMlZcsQGtOJpF\nSSgwCSDj7uR0pa5qBpBQ4O2nX6jd/PKqxZ9ADD5+nHiKEs8ceH473/0JuljJ\njog/GmYrn/cxldERDB93iTeH3UtD6rQvbAdr2cI0wZ35iY0n1rT3kIGfTBiS\nNcr5edPcTkbC3Kot6VBMFoMiZHT3w0iAyl9xosaW7m+FYB5WTVNNdj147oIo\n97I5rjJ02ftNz/mmLEM9PQsvAYr+FxthvcfgK6654phi4Bdf3UjKYWMIc+nu\noaaO\r\n=pMC1\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=8"},"gitHead":"30044e44e9f29104a04a1b5fc94dbf60b27eaa1b","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"7.10.0","description":"Detect the indentation of code","directories":{},"_nodeVersion":"12.22.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/detect-indent_6.1.0_1622184293359_0.8627676852042994","host":"s3://npm-registry-packages"}},"7.0.0":{"name":"detect-indent","version":"7.0.0","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@7.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent#readme","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"ignores":["fixture"]},"dist":{"shasum":"cab58e6ab1129c669e2101181a6c677917d43577","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.0.tgz","fileCount":5,"integrity":"sha512-/6kJlmVv6RDFPqaHC/ZDcU8bblYcoph2dUQ3kB47QqhkUEqXe3VZPELK9BaEMrC73qu+wn0AQ7iSteceN+yuMw==","signatures":[{"sig":"MEUCIQCVDFHSZ1Zpbw1ZNkmhoaajyxzahFnKmD+vWn1H9z93OgIgPCerVWZym07kIMpLs/b4qgUFMNdF2/mAQ8s0xmOnxoU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEFuqCRA9TVsSAnZWagAA4OgP/2rrALSkaQLqbu1qhqtV\n1aIrSOxdgAe0bRKMdyT++5Onk+5pNmWJdyaYqh3EgkfX49Kij/V8Ht7A5bS1\nvgo1nmAyWGQNKNgW6a3cQOFIt9ubIgceTWJ/wt7sXH5Yh0ja+PNXkgUm8yOA\neWJioRKzvMr0netN7tv06y5FgA/b+W4Q4fxCJECJ0uPZIE/rWad25uv3H6pr\nV71PzQpGNEoyWdsWgLIsAsj6bmla190EuIu9EuxLTewiuPb1LPulJqgA/wUS\n3D0+Vlds4dVoXMm5yK1dvAfRGj+svamVw4MGmaC/NxPKCgO73F9TllZL3G1k\nWviUDk4B9trnH89PHNO1HSv8DUJZabWbjfk+jF96OF4O/v1Wk5LR7XckLIsZ\nrCA1fGo9sn7M+OsWIiFLQfw9ZKiM+XiK3kYj3UpliqouMqjblM/6dhEkGAcS\nGhyE2Fn9Fo4I2z7zuz7ZhVFwpU5dR3kJTHO5jkv6BIANjRUhkfkk34NAasQu\np8pXNJVAMa0Ek/JpBqf9RdYv5kbwrK579hChvrS+1E5GfrmwZMdUbXtRkxWg\nWTt1F8H14mYF/GSVUtVkWaOnSJk7n7OPC1zNOXGiY2pjFPiC6k1l1mC1ZuMM\nyKZPBkolYZziVGt3ovIfkl6vKIsCMt+dx4sXdaXVJCcdqW7kfxRpWhpuW1nd\nLPkW\r\n=XFqC\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":">=12.20"},"exports":"./index.js","gitHead":"6062d95ac0a7d9fd3170f820bc04cb15bae83dc9","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"7.10.0","description":"Detect the indentation of code","directories":{},"_nodeVersion":"12.22.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0","typescript":"^4.3.5"},"_npmOperationalInternal":{"tmp":"tmp/detect-indent_7.0.0_1628461994353_0.5588486496577394","host":"s3://npm-registry-packages"}},"7.0.1":{"name":"detect-indent","version":"7.0.1","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"detect-indent@7.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/detect-indent#readme","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"xo":{"ignores":["fixture"]},"dist":{"shasum":"cbb060a12842b9c4d333f1cac4aa4da1bb66bc25","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.1.tgz","fileCount":5,"integrity":"sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==","signatures":[{"sig":"MEUCIQD2evMZQuywkp60UFiKA4tdlB0ZpxvaY/CSgad+3QgNtQIgAfwnVID7lVmhT9QnQdoISAkN90/ioej+4YI1FJsk7hs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHdcnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1mRAAjuQww4w7Gnd5WIJzW7GHdsTHpyK9jJrjOKNl/u/WRxibEVsU\r\nDFsK1Rd7NKfrqnQf4Rg0mXNTAwyrdlqERTvXTcdSXbqxIqbObo9zi58JqoI+\r\nMaidrHLudqSq1oO/Z1nJAGpIOezLB13/TUKgCPHWP6xAxXWcswdmtXHnXITC\r\nGnnHN5bzsPkfifkMuLG0kwR1UUCmndAn+i+aIkX3TN0aBxZn6wfzshMbUVg6\r\nDI+Pjx3JL4uWEypgg7ZXCvq+OYVQ3jZGwVA3ODHyY5UabgZzii05LaBSrX+7\r\nPIKYtRXZE0EwOTLnceVXl74zqYwSkcqOR37HoAyV830i/nYNvjAsfCOiHM9x\r\nvu7Z8OpLoc7XZPqh91nuNhJV07IrbliWYGadh8BnRh/i7YwHe5VhUfT8S9S9\r\nE78IDMo9oJrhpssc43A6vFNUdkQ1tsOVNaKyK3x1BPvVwsKiFsqdQPunZe0z\r\ndW7vZNroPY5WekNh1eSerCAOPlPCyjrL8yFehzu0kG8k1HJ/9fujBxayY8d+\r\nTVOmxlhpCDscw7f4YFkr3ELvGKtl3ZFzxFZHt/kPCk/wHqrOy7vd/v2EuEO/\r\nZo1PcG284j7a/r7u1Vz+qPTCNCWo/EmjxMAfLvpJ5nVhZ7oGRhhOSlAWzS4X\r\nyglwASY2BCrW3B1AfvpE9zrOxwWAK4iA1Yk=\r\n=exa0\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":">=12.20"},"exports":"./index.js","gitHead":"ffbb83160f63448be6aa86fef6ff76ad91cdd917","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/detect-indent.git","type":"git"},"_npmVersion":"8.3.2","description":"Detect the indentation of code","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0","typescript":"^4.3.5"},"_npmOperationalInternal":{"tmp":"tmp/detect-indent_7.0.1_1662900007412_0.5343960759105832","host":"s3://npm-registry-packages"}},"7.0.2":{"name":"detect-indent","version":"7.0.2","description":"Detect the indentation of code","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/detect-indent.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"xo":{"ignores":["fixture"]},"_id":"detect-indent@7.0.2","gitHead":"101daf9d541f3e73a267476cbb1e71b64e264e0d","bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"homepage":"https://github.com/sindresorhus/detect-indent#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.2","dist":{"integrity":"sha512-y+8xyqdGLL+6sh0tVeHcfP/QDd8gUgbasolJJpY7NgeQGSZ739bDtSiaiDgtoicy+mtYB81dKLxO9xRhCyIB3A==","shasum":"16c516bf75d4b2f759f68214554996d467c8d648","tarball":"https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.2.tgz","fileCount":5,"unpackedSize":9947,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF+Wsvm3n0t8n/cCW5JPspXYhVIleA+q1G+LZDIZ220jAiBZKK+0KuqVF+WpTk4sXiyFQZAEUYoL7Ma8snzvEdshSQ=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/detect-indent_7.0.2_1757987616737_0.8453981111325706"},"_hasShrinkwrap":false}},"time":{"created":"2013-08-11T00:28:27.860Z","modified":"2025-09-16T01:53:37.088Z","0.1.0":"2013-08-11T00:28:31.046Z","0.1.1":"2013-08-13T17:54:38.934Z","0.1.2":"2013-08-30T08:34:24.581Z","0.1.3":"2013-09-25T22:03:28.005Z","0.1.4":"2014-04-29T19:20:03.852Z","0.2.0":"2014-06-16T16:40:58.661Z","1.0.0":"2014-09-11T11:02:05.021Z","1.0.1":"2014-10-03T22:36:45.242Z","2.0.0":"2014-10-26T03:05:04.210Z","3.0.0":"2014-11-23T03:45:43.877Z","3.0.1":"2015-02-16T17:31:25.306Z","4.0.0":"2015-09-07T09:38:01.807Z","5.0.0":"2016-10-20T19:48:14.523Z","6.0.0":"2019-04-30T12:43:08.146Z","6.1.0":"2021-05-28T06:44:53.545Z","7.0.0":"2021-08-08T22:33:14.482Z","7.0.1":"2022-09-11T12:40:07.617Z","7.0.2":"2025-09-16T01:53:36.911Z"},"bugs":{"url":"https://github.com/sindresorhus/detect-indent/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/detect-indent#readme","keywords":["indent","indentation","detect","infer","identify","code","string","text","source","space","tab"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/detect-indent.git"},"description":"Detect the indentation of code","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# detect-indent\n\n> Detect the indentation of code\n\nPass in a string of any kind of text and get the indentation.\n\n## Use cases\n\n- Persisting the indentation when modifying a file.\n- Have new content match the existing indentation.\n- Setting the right indentation in your editor.\n\n## Install\n\n```sh\nnpm install detect-indent\n```\n\n## Usage\n\nHere we modify a JSON file while persisting the indentation:\n\n```js\nimport fs from 'node:fs';\nimport detectIndent from 'detect-indent';\n\n/*\n{\n    \"ilove\": \"pizza\"\n}\n*/\nconst file = fs.readFileSync('foo.json', 'utf8');\n\n// Tries to detect the indentation and falls back to a default if it can't\nconst indent = detectIndent(file).indent || '    ';\n\nconst json = JSON.parse(file);\n\njson.ilove = 'unicorns';\n\nfs.writeFileSync('foo.json', JSON.stringify(json, undefined, indent));\n/*\n{\n    \"ilove\": \"unicorns\"\n}\n*/\n```\n\n## API\n\nAccepts a string and returns an object with stats about the indentation:\n\n- `type` {'tab' | 'space' | undefined} - The type of indentation. It is `undefined` if no indentation is detected.\n- `amount` {number} - The amount of indentation. For example, `2`.\n- `indent` {string} - The actual indentation.\n\n## Algorithm\n\nThe current algorithm looks for the most common difference between two consecutive non-empty lines. Single-space indentations and changes are ignored by default to prevent common false positives from comment alignment.\n\nIn the following example, even if 4-space indentation appears 3 times while 2-space appears only 2 times, the 2-space indentation is detected because there are 4 indent changes of 2 spaces vs only 2 changes of 4 spaces:\n\n```css\nhtml {\n  box-sizing: border-box;\n}\n\nbody {\n  background: gray;\n}\n\np {\n    line-height: 1.3em;\n    margin-top: 1em;\n    text-indent: 2em;\n}\n```\n\n[Source.](https://medium.com/@heatherarthur/detecting-code-indentation-eff3ed0fb56b#3918)\n\nFurthermore, if there are multiple indent differences with the same usage count, the indentation with the most lines is selected.\n\nIn the following example, the indentation is detected as 4-spaces:\n\n```css\nbody {\n  background: gray;\n}\n\np {\n    line-height: 1.3em;\n    margin-top: 1em;\n    text-indent: 2em;\n}\n```\n\n## Related\n\n- [detect-indent-cli](https://github.com/sindresorhus/detect-indent-cli) - CLI for this module\n- [detect-newline](https://github.com/sindresorhus/detect-newline) - Detect the dominant newline character of a string\n- [detect-indent-rs](https://github.com/stefanpenner/detect-indent-rs) - Rust port\n- [detect-indent-py](https://github.com/Ethan-Vanderheijden/detect-indent-py) - Python port\n","readmeFilename":"readme.md","users":{"passy":true,"liunian":true,"rocket0191":true,"demian_dark":true,"flumpus-dev":true,"johnnyscript":true}}