# fix-indents

> Fox Indents in Indented Languages like SASS, CoffeeScript, LiveScript, Haskell, Ocaml, F#, Python, etc

Latest version **0.1.2092** (published 2017-02-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install fix-indents
pnpm add fix-indents
yarn add fix-indents
bun add fix-indents
```

Provides the command `fix-indents`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2092 |
| Published | 2017-02-09 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Flyber |
| Maintainers | askucher |
| Keywords | indents, tool, fix |

## Links

- npm: https://www.npmjs.com/package/fix-indents
- Repository: https://github.com/askucher/fix-indents
- Homepage: https://github.com/askucher/fix-indents#readme
- Issues: https://github.com/askucher/fix-indents/issues
- npm.io page: https://npm.io/package/fix-indents

## Dependencies (1)

- [prelude-ls](https://npm.io/package/prelude-ls.md) ^1.1.2

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.2092 (latest) — 2017-02-09
- 0.1.2091 — 2017-02-09
- 0.1.2090 — 2017-02-09
- 0.1.2089 — 2017-02-09
- 0.1.2088 — 2017-02-09
- 0.1.2087 — 2017-02-09
- 0.1.2086 — 2017-02-09
- 0.1.2085 — 2017-02-09
- 0.1.2084 — 2017-02-09
- 0.1.2083 — 2017-02-09
- 0.1.2082 — 2017-02-09
- 0.1.2081 — 2017-02-09
- 0.1.2080 — 2017-02-09
- 0.1.2079 — 2017-02-08
- 0.1.2078 — 2017-02-08
- … 31 more at https://npm.io/package/fix-indents/versions

## README

![Logo](https://content.screencast.com/users/a.stegno/folders/Jing/media/6f2364b6-707d-4645-855c-991abdac0042/00000113.png)

Fix Indents in Indented Languages like SASS, Pug, CoffeeScript, LiveScript, Haskell, Ocaml, F#, Python, Bash, etc.

## Demo

![Demo](https://mir-s3-cdn-cf.behance.net/project_modules/disp/04d28e48574753.589b99afb0f6c.gif)

###Other Examples

![Example](https://content.screencast.com/users/a.stegno/folders/Jing/media/c4b5c81d-de94-45cf-be2a-85039d3cdaac/00000110.png)


![SASS Example](https://content.screencast.com/users/a.stegno/folders/Jing/media/d6bd983c-bf5b-46a2-b78f-677fea5ef295/00000111.png)
###Motivation

* Developer puts different amount of indents during development. This tools allows to refactor indents into one consistent and accurate indented style.
* Sometimes Developer need to add top level block. It forces to move all nested tree.
* SASS will throw the error for inconsistent indents

### Install

```sh
#Install Nodejs
npm install fix-indents -g
```

### Use in Command Line
```sh

fix-indents ./style.sass

```

### Use with NodeJs
```Javascript

fixIndents = require("fix-indents");

fixedCode = fixIndents("PUT CODE HERE", { /*options*/ });

console.log(fixedCode);

```

### Options

Option | Description
---  | ---
countSpaces | Prefered amount of spaces for formatting
ignoreInside | Ignore multiline comment and multiline strings


Example for LiveScript:

```JSON
{ 
  
  "countSpaces": 2,
  "ignoreInside": [
     ["'''", "'''"],
     ["/*" , "*/" ],
     ["\"\"\"", "\"\"\""]
  ]
```

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