thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
https://thecodrr.github.io/fdir/
MIT License
1.49k stars 56 forks source link

What do I need to migrate from glob to fdir #38

Open StoneCypher opened 4 years ago

StoneCypher commented 4 years ago

Hi. I'm an active user of glob and 92% faster seems neat.

In order to switch, I need to know that my existing patterns will be maintained. Will you please create a near-top readme section telling me how the two libraries' pattern outlay lines up?

Some of the fuss between glob and other competitors was when glob chose to remove features to come into line with other standards. I'd like to know where those topics stand, and if they line up, I will probably switch

Thanks for listening

thecodrr commented 4 years ago

fdir internally depends on picomatch for glob pattern matching. Glob uses minimatch. There is an extensive comparison between the two on picomatch readme.

I have intentions to make it pluggable so you can choose which library you want to use but that is still just an idea.

thecodrr commented 4 years ago

I will also add a Migration guide for people looking to migrate. Any help regarding that is welcome.