gulp-paginate

1.0.0 • Public • Published

gulp-paginate

A Gulp plugin for collating multiple files into one or more pages. Files piped into this plugin are held until the number of articles reaches an optional amount of files. Content is then piped out into a new file with incrementing file names.

Installation

This package is installed using npm:

npm install gulp-paginate

Options

itemsPerPage

Determines the maximum number of files to collate onto a single page.

Examples

// articles/article1.html
// articles/article2.html
// articles/article3.html
// articles/article4.html

gulp.task('index-pages', function() {
  return gulp.src('articles/*')
    .pipe(paginate(3))
    .pipe(gulp.dest('./dist'));
});

// Out:
// dist/1.html
// dist/2.html

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i gulp-paginate

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • katiefenn