gulpjs / vinyl

Virtual file format.
MIT License
1.28k stars 107 forks source link

Allow custom normalize function #130

Closed bezoerb closed 7 years ago

bezoerb commented 7 years ago

Looks like i should have followed the discussion in #128 before trying another one ;)

phated commented 7 years ago

I actually was discussing this with a buddy the other day and it helped me understand my desires for the new Vinyl([options]) API.

Basically, I want all the options passed to the constructor to be properties that can be accessed (like path, cwd, etc).

This makes it seem like the object being passed into new Vinyl is being "enhanced" with the getters/setters.

I don't want it to be a catch-all bucket for any option we want to tack on. This is why I'd prefer the isRemote flag in an enhanced Stat object (because stat is exposed).