# untab

> Remove whitespace at the start of every line in a multiline template string

Latest version **1.0.1** (published 2016-04-25) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-04-25 |
| First published | 2016-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Marius Gundersen |
| Maintainers | mariusgundersen |
| Keywords | es6, multiline, multiline, template, string, whitespace, indent |

## Links

- npm: https://www.npmjs.com/package/untab
- Repository: https://github.com/mariusGundersen/untab
- Homepage: https://github.com/mariusGundersen/untab#readme
- Issues: https://github.com/mariusGundersen/untab/issues
- npm.io page: https://npm.io/package/untab

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-04-25
- 1.0.0 — 2016-04-25

## README

# untab

> remove leading whitespace in template strings

## Install

    npm install --save untab

## Usage

```js
const u = require('untab');

function renderHtml(res, model){
  res.write(untab`
    <!doctype html>
    <html>
      <head>
        <title>${model.title}</title>
      </head>
      <body>
        <h1>${model.title}</h1>
      </body>
    </html>
  `);
}

```

## Description

untab will remove the leading whitespace characters from a template string. It will look at the first line and remove as many leading whitespace characters as that line has. This preserves the indentation on the following lines.

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