{"name":"is-path-inside","version":"1.0.0","description":"Check if a path is inside another path","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-path-inside"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["path","inside","folder","directory","dir","file","resolve"],"dependencies":{"path-is-inside":"^1.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"b507035b66a539b7c12ba8b6b486377aa02aef9f","bugs":{"url":"https://github.com/sindresorhus/is-path-inside/issues"},"homepage":"https://github.com/sindresorhus/is-path-inside","_id":"is-path-inside@1.0.0","_shasum":"fc06e5a1683fbda13de667aff717bbc10a48f37f","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"fc06e5a1683fbda13de667aff717bbc10a48f37f","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-1.0.0.tgz","integrity":"sha512-WdiHWLVPHbn+QOQdJXqJS7TtArj7yXvKb8ZyFZ7AaIuW7KOfLLyR5glFAR+b1Q6PhSOTL8lpQvIoV2klU0nE9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC98ozqverfb+Xy8cHz6aJbDDgs4vJgfdu1eBmXLov5HgIgGlRdgcqFki3zbB/33XHOEpcOmUJ0tPvMvmC6NZpeWM4="}],"size":783,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-1.0.0.tgz"},"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":1408009621189,"_cnpm_publish_time":1408009621189,"dist-tags":{"latest":"4.0.0"}}