# gulp-indent

> Indent piped files

Latest version **1.0.1** (published 2015-07-31) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2015-07-31 |
| First published | 2014-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joao Dias |
| Maintainers | johnydays |
| Keywords | gulpplugin |

## Links

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

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) *
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.0

## Recent versions

- 1.0.1 (latest) — 2015-07-31
- 1.0.0 — 2014-08-21

## README

# gulp-indent
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]  [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]

> indent plugin for [gulp](https://github.com/wearefractal/gulp)

## Usage

First, install `gulp-indent` as a development dependency:

```shell
npm install --save-dev gulp-indent
```

Then, add it to your `gulpfile.js`:

```javascript
var indent = require("gulp-indent");

gulp.src("./src/*.ext")
	.pipe(indent({
		tabs:true,
    amount:1
	}))
	.pipe(gulp.dest("./dist"));
```

## API

### indent(options)

#### options.tabs
Type: `Boolean`  
Default: `false`
  
  True to use tabs, false to use spaces

#### options.amount
Type: `Number`  
Default: `2`
  
  Amount of tabs or spaces to indent


## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License)

[npm-url]: https://npmjs.org/package/gulp-indent
[npm-image]: https://badge.fury.io/js/gulp-indent.png

[travis-url]: http://travis-ci.org/JohnyDays/gulp-indent
[travis-image]: https://secure.travis-ci.org/JohnyDays/gulp-indent.png?branch=master

[coveralls-url]: https://coveralls.io/r/JohnyDays/gulp-indent
[coveralls-image]: https://coveralls.io/repos/JohnyDays/gulp-indent/badge.png

[depstat-url]: https://david-dm.org/JohnyDays/gulp-indent
[depstat-image]: https://david-dm.org/JohnyDays/gulp-indent.png

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