# indent-style

> Detect indent style for your git repo. Useful when you want to write an .editorconfig for old repos.

Latest version **1.0.0** (published 2016-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install indent-style
pnpm add indent-style
yarn add indent-style
bun add indent-style
```

Provides the command `indent-style`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-18 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NdYAG |
| Maintainers | ndyag |

## Links

- npm: https://www.npmjs.com/package/indent-style
- npm.io page: https://npm.io/package/indent-style

## Recent versions

- 1.0.0 (latest) — 2016-05-18

## README

# indent-style

Detect indent style for your git repo. Useful when you want to write an .editorconfig for old repos.

```
➜  bragi git:(style) indent-style
{ json: { space: { '2': 3 } },
  md: { space: { '2': 2 } },
  yaml: { space: { '2': 1 } },
  svg: { space: { '4': 1 } },
  js: { tab: { '1': 4 }, space: { '1': 1, '2': 45 } },
  html: { space: { '2': 4 } },
  example: { space: { '4': 1 } },
  scss: { space: { '2': 60, '4': 2 }, tab: { '1': 1 } },
  jsx: { space: { '2': 48 } },
  cjsx: { space: { '2': 6 } },
  coffee: { space: { '2': 9 } } }
```

Based on [detect-indent](https://github.com/sindresorhus/detect-indent) and [git-utils](https://github.com/atom/git-utils).

---
_Source: https://npm.io/package/indent-style · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
