# unindent

> Remove indentations from a block of code

Latest version **2.0.0** (published 2015-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install unindent
pnpm add unindent
yarn add unindent
bun add unindent
```

## 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 | 2.0.0 |
| Published | 2015-04-13 |
| First published | 2013-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Glen Huang |
| Maintainers | elliottcable |

## Links

- npm: https://www.npmjs.com/package/unindent
- Repository: https://github.com/curvedmark/unindent
- Issues: https://github.com/curvedmark/unindent/issues
- npm.io page: https://npm.io/package/unindent

## Recent versions

- 2.0.0 (latest) — 2015-04-13
- 1.2.0 — 2013-10-19
- 1.1.0 — 2013-10-18
- 1.0.0 — 2013-10-18

## README

# unindent

Remove indentations from a block of code

## Installation

	npm install unindent

## Example

```javascript
var assert = require('assert');
var unindent = require('unindent');
var code = '\ta\t\tb';

assert.equal(unindent(code), 'a\tb');
```

## API

```javascript
unindent(code, [opts]);
```

* `code` - A string of code.
* `opts` - An optional object literal support these options:
  * `tabSize` - Number. If specified, the starting tabs of each line will be convert to spaces.
  * `trim` - Boolean. Whether the unindented code should be trimed.

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