Skip to content

Make vinyl files more web File like #156

@jimmywarting

Description

@jimmywarting

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

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions