Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.34 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.34 KB

gulp-indent

NPM version Build Status Coverage Status Dependency Status

indent plugin for gulp

Usage

First, install gulp-indent as a development dependency:

npm install --save-dev gulp-indent

Then, add it to your gulpfile.js:

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