vinyl-group

Vinyl object that contains groups of vinyl objects created with group-array.

Usage no npm install needed!

<script type="module">
  import vinylGroup from 'https://cdn.skypack.dev/vinyl-group';
</script>

README

vinyl-group NPM version NPM downloads Build Status

Vinyl object that contains groups of vinyl objects created with group-array.

Install

Install with npm:

$ npm install --save vinyl-group

Usage

var VinylGroup = require('vinyl-group');

API

VinylGroup

Create an instance of VinylGroup. Pass in a group from group-array to store.

Params

  • group {Object}: A group object created by passing an array of vinyl file into group-array.

Example

var files = [ ... ]; // array of vinyl files
var group = groupArray(files, 'data.tags');
var vinylGroup = new VinylGroup(group);

console.log(vinylGroup.group === group);
//=> true

console.log(vinylGroup);
//=> <VinylGroup ["foo (3)", "bar (3)"]>

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Brian Woodward

License

Copyright © 2016, Brian Woodward. Released under the MIT license.


This file was generated by verb, v0.9.0, on July 29, 2016.