1.0.2 • Published 5 years ago

gulp-stream-limit v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

A common use case is when you are trying to process huge amount of files in batch mode. So you can load them with gulp.src and limit the list to a specified size. Note that in such a case, you are responsible for preventing the processing of a single file multiple times.

EXAMPLE: Make a directory named "test-files" and put some files in that (atleast 3 for this example code), then put these lines in "gulpfile.js":

const gulp = require('gulp');
const debug = require('gulp-debug');
const gutil = require('gulp-util');
const limit = require('gulp-stream-limit');

gulp.task('default', () => gulp.src('test-files/*').pipe(limit(2)).pipe(debug(f => util.log(f))));

Now run gulp.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago