# indent

> Indents a string.

Latest version **0.0.2** (published 2016-02-22) · MIT license · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2016-02-22 |
| First published | 2014-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Toby Ho |
| Maintainers | airportyh |
| Keywords | string, indentation |

## Links

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

## 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

- 0.0.2 (latest) — 2016-02-22
- 0.0.1 — 2014-04-28
- 0.0.0 — 2014-04-07

## README

# Indent
[![Build Status](http://img.shields.io/travis/airportyh/indent.svg?style=flat-square)](https://travis-ci.org/airportyh/indent) [![NPM version](http://img.shields.io/npm/v/indent.svg?style=flat-square)](https://www.npmjs.org/package/indent) [![NPM license](http://img.shields.io/npm/l/indent.svg?style=flat-square)](https://www.npmjs.org/package/indent)

Indent a string.

## Install

```
npm install indent
```

## Usage

```js
var indent = require('indent');

indent('hello\nworld', 2);
// "  hello\n  world"

indent('hello\nworld', '  ');
// "  hello\n  world"

indent('hello\nworld');
// "  hello\n  world"

indent('hello\nworld', '\t');
// "\thello\n\tworld"
```

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