Skip to content

JohnyDays/gulp-indent

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published