1.5.0 • Published 10 years ago

gulp-collections v1.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
10 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

10 years ago

1.4.0

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago