Socket
Book a DemoInstallSign in
Socket

vinyl-group

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-group

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

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
2
Created
Source

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

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.

Keywords

array

FAQs

Package last updated on 29 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts