{"name":"is-path-inside","version":"1.0.1","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":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","inside","folder","directory","dir","file","resolve"],"dependencies":{"path-is-inside":"^1.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7f08550845a34a9be18f5422f31da0c83b5a50b9","bugs":{"url":"https://github.com/sindresorhus/is-path-inside/issues"},"homepage":"https://github.com/sindresorhus/is-path-inside#readme","_id":"is-path-inside@1.0.1","_shasum":"8ef5b7de50437a3fdca6b4e865ef7aa55cb48036","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8ef5b7de50437a3fdca6b4e865ef7aa55cb48036","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-1.0.1.tgz","integrity":"sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFzyiAj9GQSygXWAQa4aP+xpey4Ey3F4greRAY2Kon+gIhAIZGhMCiqAQrGa1q163ARdk61wAYsflsSSJ0XZsbZxDG"}],"size":1479,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-inside-1.0.1.tgz_1512038091165_0.6817436330020428"},"directories":{},"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":1512038092892,"_cnpm_publish_time":1512038092892,"dist-tags":{"latest":"4.0.0"}}