https://github.com/z2oh/gulp-tabify
Turn those spaces into tabs!
https://github.com/z2oh/gulp-tabify
Last synced: 9 months ago
JSON representation
Turn those spaces into tabs!
- Host: GitHub
- URL: https://github.com/z2oh/gulp-tabify
- Owner: z2oh
- License: mit
- Created: 2016-08-19T22:31:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T22:54:30.000Z (over 9 years ago)
- Last Synced: 2025-02-15T14:26:49.366Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [gulp](http://gulpjs.com)-tabify
[](https://travis-ci.org/z2oh/gulp-tabify)
[](https://david-dm.org/z2oh/gulp-tabify.svg)
## Features
* Changes spaces to be tabs
* Number of spaces to change is configurable
## Install
```sh
$ npm install --save-dev gulp-tabify
```
## Usage
```js
var gulp = require('gulp');
var tabify = require('gulp-tabify');
gulp.task('default', function () {
return gulp.src('./app/**.*.js')
.pipe(tabify(4, true))
.pipe(gulp.dest('./app'));
});
```
## API
```
tabfiy(numSpaces, preserveAlignmentSpaces)
```
`numSpaces` is the number of spaces to convert to a tab at the beginning of each line. The default is 4.
`preserveAlignmentSpaces` is a boolean. When set to true, alignment spaces are preserved; false ignores them. Default is true. Example when set to true:
Before

After

-------
[](https://opensource.org/licenses/MIT)