0.0.4 • Published 9 years ago

gulp-file-split v0.0.4

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

gulp-file-split

split file to multiple for gulp

Usage

First, install gulp-file-split as a development dependency:

npm install --save-dev gulp-file-split

Then, add it to your gulpfile.js:

var gsplit  = require('gulp-file-split');

gulp.task('split', function() {
  gulp.src('file.txt')
          .pipe(gsplit({
              suffix: 'resource_',
              ext: 'txt',
              count: 3
          }))
          .pipe(gulp.dest('tmp'));
});

API

gsplit(options)

options

Type: Object

options.prefix

Type: String
Default: file_

the sub file prefix name

options.count

Type: Integer

The number to be divided sub file

options.ext

Type: String
Default: txt

the sub file suffix name

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago