Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[New] Add `isDirectory`; use to speed up `node_modules` lookups #192
This adds the
This offers a small but useful performance improvement by avoiding unnecessary stat calls.
Because of the added option this is a MINOR change.
Yes, I had realised that the checking of basedir was a breaking change.
We can remove the
The readme does not allude to why this module needs these options, it just specifies what they do; therefore it seems to me they are a power-user feature and so users would need to read the code to see how they're used anyway. It would perhaps violate the principle of least surprise to see it used in more places from the jump from 1.x to 2.x but... semver major, caveat emptor.