-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make vinyl files more web File like #156
Comments
This is a pretty good idea. I'll slate it to discuss with the team to see if we can reconcile the idea with the future plans for Vinyl. |
just by making vinyl files more like blobs would mean that lots of other packages that base it's code on Blob would actually start to work with vinyl files too. |
web stream would be tuff doe... it would kind of have to be conditionally supported based on if ReadableStream is supported in the current env. wouldn't mind if |
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
andtype
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
andFormData
and you would even be able to concat files together usingnew Blob([ virualFileA, virualFileB ])
- that's if you are using fetch-blobIf 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...
The text was updated successfully, but these errors were encountered: