sindresorhus

is-path-inside

Check if a path is inside another path

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
sindresorhus

Same as the existing method, but checks if the paths exists and also follows symlinks. This could be used when you know both path exists. It could potentially also be an option. // @chrisblossom Thoughts?

sindresorhus · 10mo ago
OrenGitHub

Hi ! It seems there is condition in the function that doesn't make too much sense: Indeed, this makes the function return inaccurate responses for cases that satisfy the relation - I adjusted the tests accordingly, and slightly refactored the code

OrenGitHub · 1y ago
ColdSpirit0

Hi! Some utils working badly with ES packages so I added commonjs support. If all ok, please dont forget to update npm package =)

ColdSpirit0 · 4y ago
Structured data for AI agents

Repository: sindresorhus/is-path-inside. Description: Check if a path is inside another path Stars: 40, Forks: 14. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, chrisblossom, coreyfarrell, BendingBender, Richienb, sholladay, timkendrick.