Code Monkey home page Code Monkey logo

Comments (5)

yocontra avatar yocontra commented on July 16, 2024

@phated Yeah, I agree. Do you want to expose that option in vinyl-fs though? How about async filter functions + stream ordering?

from glob-stream.

phated avatar phated commented on July 16, 2024

I think vinyl-fs still exposes since option and we generate the filter method and pass it to glob-stream like globStream.create(globs, { filter: sinceFilter }). I guess we could also expose filter directly like { filter: options.filter || sinceFilter }

Not sure how we'd do stream ordering though.

from glob-stream.

erikkemperman avatar erikkemperman commented on July 16, 2024

It might make sense to have a filter option here regardless, but I think that when I pass a function as since option to vinylfs.src(), I would expect it to be invoked with an actual vinyl argument, as the other options are (or will be).

So I don't think vinyl-fs/vinyl-prepare can simply hand this option off to glob-stream, because the corresponding vinyl object will not yet have been created at that time...?

from glob-stream.

phated avatar phated commented on July 16, 2024

@erikkemperman good catch, we'll probably not push filter down into this project then.

from glob-stream.

phated avatar phated commented on July 16, 2024

Going to close this since it doesn't feel appropriate to implement here. Might revisit in the future if alternative forms of filtering seem to make sense here.

from glob-stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.