hughsk / vinyl-map

Map vinyl files' contents as strings
MIT License
36 stars 7 forks source link

Pass file object on #9

Open gagern opened 9 years ago

gagern commented 9 years ago

As it stands, vinyl-map can't be easily combined with the gulp-data plugin since the mapping function only sees file.path, not the file object itself. It would be nice if you could pass the full file object as a third parameter, so that the transformation can take its data into account, and perhaps also anything else it might be carrying.