# @uppercod/normalize-indentation

> Normalize start-of-line spaces by reducing values to eliminate additional indentation

Latest version **1.0.0** (published 2020-08-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @uppercod/normalize-indentation
pnpm add @uppercod/normalize-indentation
yarn add @uppercod/normalize-indentation
bun add @uppercod/normalize-indentation
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-08-23 |
| First published | 2020-08-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | UpperCod |
| Maintainers | uppercod |

## Links

- npm: https://www.npmjs.com/package/@uppercod/normalize-indentation
- Repository: https://github.com/UpperCod/normalize-indentation
- Homepage: https://github.com/UpperCod/normalize-indentation#readme
- Issues: https://github.com/UpperCod/normalize-indentation/issues
- npm.io page: https://npm.io/package/@uppercod/normalize-indentation

## Recent versions

- 1.0.0 (latest) — 2020-08-23

## README

# normalize-indentation

Normalize start-of-line spaces by reducing values to eliminate additional indentation.

## Install

```
npm install @uppercod/normalize-indentation
```

## Usage

```js
import normalizeIndentation from "@uppercod/normalize-indentation";

normalizeIndentation(`
    line 1
        line 1.1
        line 1.2
    line 2
        line 2.1        
`);
```

**The script will remove the original indentation and adjust the swapping of tab and space for spaces**

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