tinyglobby
tinyglobby copied to clipboard
`globStream` support
I saw this requested in https://github.com/webpro-nl/knip/issues/768
it is possible to add (fdir exposes an option for it), but i'm not sure about adding extra options just because they could be useful for some (that's how libraries get bloated, right?). i feel like the proper fix would be to add globStream
Yeah, I think if you click through to see how it was originally done it was with globStream
Immich is another project that we can switch over to tinyglobby once we have globStream
Seems like fdir is lacking any such support, however
Here's the issue in fdir that this depends on: https://github.com/thecodrr/fdir/issues/40
I wonder if this could be implemented now that fdir uses AbortController. See:
- https://github.com/SuperchupuDev/tinyglobby/issues/134
- https://github.com/thecodrr/fdir/pull/110
- https://github.com/thecodrr/fdir/pull/144
i don't think it can be easily implemented here until fdir itself adds streams support
Oh yeah, I guess aborting early isn't the same as streaming. But it might be enough for knip to switch to tinyglobby at least as I think they were primarily concerned with early return. I'm not sure about Immich
Here's another one that uses streaming: https://www.npmjs.com/package/@compodoc/compodoc