gulpjs / gulpjs/vinyl

Make vinyl files more web File like

Open
#156 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

### Describe your idea for a new feature
I propose making the virtual files more web- Blob/File IDL like by introducing: `stream()`, `text()`, `arrayBuffer()`, `slice()`, `size`, `name` and `type`

### Explain the problem your idea is trying to solve
I think ppl would feel more at home if virtual files where more like web Blob/File (in fact they are introduced into NodeJS at this point globally)
if they behaved more like Blob/Files then it would also be possible to use them with eg `fetch` and `FormData` and you would even be able to concat files together using `new Blob([ virualFileA, virualFileB ])` - that's if you are using [fetch-blob](https://github.com/node-fetch/fetch-blob#creating-blobs-backed-up-by-other-async-sources)

### If this feature could exist outside of gulp (like as a plugin or a module), would you be interested in helping to create and maintain it?

Hmm, it could exist outside of gulp, but then i would have to add new prototype methods to vinyl files. or extend it...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.