1. You can use 'glob' from Node instead of a library! (still experimental, available in 22+)
But glob returns an async iterator, which can be annoying to work with. So...
2. Array.fromAsync lets you turn an async iterator into an array. Beautiful.
1. You can use 'glob' from Node instead of a library! (still experimental, available in 22+)
But glob returns an async iterator, which can be annoying to work with. So...
2. Array.fromAsync lets you turn an async iterator into an array. Beautiful.