You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same job as is-path-inside, which was added with an e18e docs page in #1090 (#1009). ~15.6M weekly downloads, all on the latest version (1.0.2), which hasn't been published since 2016. It's used directly by about 3,300 packages, so the downloads aren't coming from a single dependent.
The is-path-inside snippet works here with one change: path-is-inside returns true when the two paths are equal, so an empty relation should count as inside. I checked that against the package's own logic and it matches, except for paths that aren't normalized: path-is-inside does a plain string prefix check, so pathIsInside('/a/../b', '/a') returns true, while path.relative correctly treats it as outside.
This could reuse the is-path-inside docs page, or get its own short page that links to it, as discussed in #1022.
Activity