{"name":"is-path-inside","version":"3.0.0","description":"Check if a path is inside another path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-inside.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","inside","folder","directory","dir","file","resolve"],"devDependencies":{"ava":"^2.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"d07f9e1cc1deb228c4f94a1ae9188c76523d4b13","bugs":{"url":"https://github.com/sindresorhus/is-path-inside/issues"},"homepage":"https://github.com/sindresorhus/is-path-inside#readme","_id":"is-path-inside@3.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-v28/HvYQN3AepaOvkD0K93htMmCF6BczXUVWn9lShWeNdzwmT3ZU2jyFBLaTHBEOQZDoMyxkproAo2PeHcMe1w==","shasum":"1b157644770a6200864a701b4447cdae60f9bc8e","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-3.0.0.tgz","fileCount":5,"unpackedSize":3866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHtLACRA9TVsSAnZWagAAZpgQAITpb9aP4qNraB55g7Dk\nhyO+D/w2VbBvGcL9waionLEDzUSwJpjFnNePLDrI3dU3qvVAi37G7Nd/VSNs\nbHp7Ppg1dr3vq35CO4PfU3ftH1e3v/mWJCR7dZztDweGxGFo1rzz4cEdwSwy\neXIGodfWaPR4G4drmfqhyj2oTw0k+r6cmjwQCl59rfhJ/QrBMykfVZmUXvt4\nP3Eb1KsEsYgcHa/o4fBRuylNbHPLj0Ed1/x1K+gB6Oz8zXMJWobRa6PAWy7Y\nGVgY6bdxLPbxrinHg1cE2prPEqzZ2ZT5n8eBtPw+9a4Z10Szn/rb26nUznHy\nMly7e+k06MFvccC87i1sNlGYQUsH09M4I4tkuUyBYxX71taQ1+52SkqCRARS\ntfJn6p2lVxK7UihNoNKF+tAuWYsznJ6nNHXCjA/wt4484RyHeI51rkHMjWiW\njvsYRMtaxy0u34Sxs5++cW1Tr/yXedoY0SWEXgQG62Jn0dUlqht4kLl/kk/4\ncJwyJ/IVH1x+jnkOnQHiqXyeRvjuaXeMj1XzRnvCRRwjM267awqAhHB3sXbF\neYK4LdC3wtuVxr5WuOSw1baH/629KvSF17FJbqgAmkM4TqshCb21+3/DkmHy\nOULs12HkvbB3Fe3vnYsAgJOtjQntGQXy5h2lxDnP0ROSSSWtpZ3O8YINk3+R\nzaFj\r\n=i0OG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHtDO3e9G5x1QrBrQ0yYhCDTR4upnJGZY1BpjGd3NiCAiEA0Oiuy4EE1n21hyAoB8GpO5fDRCGy8weW5joBuUwz8Ow="}],"size":1927,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-inside_3.0.0_1562301119737_0.7632901539665864"},"_hasShrinkwrap":false,"readme":"# is-path-inside\n\n> Check if a path is inside another path\n\n## Install\n\n```\n$ npm install is-path-inside\n```\n\n## Usage\n\n```js\nimport isPathInside from 'is-path-inside';\n\nisPathInside('a/b/c', 'a/b');\n//=> true\n\nisPathInside('a/b/c', 'x/y');\n//=> false\n\nisPathInside('a/b/c', 'a/b/c');\n//=> false\n\nisPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus');\n//=> true\n```\n\n## API\n\n### isPathInside(childPath, parentPath)\n\nNote that relative paths are resolved against `process.cwd()` to make them absolute.\n\n**Important:** This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system.\n\n#### childPath\n\nType: `string`\n\nThe path that should be inside `parentPath`.\n\n#### parentPath\n\nType: `string`\n\nThe path that should contain `childPath`.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-path-inside?utm_source=npm-is-path-inside&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1562301119865,"_cnpm_publish_time":1562301119865,"dist-tags":{"latest":"4.0.0"}}