SuperchupuDev / tinyglobby

A fast and minimal alternative to globby and fast-glob
https://npmjs.com/package/tinyglobby
MIT License
149 stars 9 forks source link

Support for helper `convertPathToPattern` #40

Closed ematipico closed 1 month ago

ematipico commented 2 months ago

I tried to replace tinyglobby in the Astro repository, but unfortunately, we use an utility that at the moment isn't ported: convertPathToPattern

SuperchupuDev commented 2 months ago

isn't this the same as #36's escapePath function? i can't tell the difference

benmccann commented 1 month ago

Pretty similar. The docs says it additionally converts backslashes to forward slashes on Windows in cases where they are not escape characters