1.5.0 • Published 9 years ago

gulp-collections v1.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Build Status Dependency Status devDependency Status

gulp-collections

Parses collections of files, optionally parsing. Ideal for use in static site generation

collections(options)

options

Type: Object

Options passed to gulp-collections.

options.count

Type: Number

Number of items to limit collection to

options.sortBy

Type: Function

Function to sort items by. Takes two arguments, the items to compare.

e.g.

function simpleSort(a, b) {
  return (a.attributes.sort > b.attributes.sort) ?
    -1 : (a.attributes.sort < b.attributes.sort) ?
    1 : 0;
}
1.5.0

9 years ago

1.4.0

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago