{"name":"is-path-inside","version":"0.1.0","description":"Check if a path is inside another path","license":"MIT","repository":{"type":"git","url":"git://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":"*"},"bugs":{"url":"https://github.com/sindresorhus/is-path-inside/issues"},"homepage":"https://github.com/sindresorhus/is-path-inside","_id":"is-path-inside@0.1.0","_shasum":"80a5625e69ec88acd0ebe7bc06ecb89a1438de94","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"80a5625e69ec88acd0ebe7bc06ecb89a1438de94","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-0.1.0.tgz","integrity":"sha512-Z/Naw3ZVkpJP/cqrbQsN65dyb43FHNO8rYR0VuButoomVYaipDI4jkowdZQMPS/oxQQKWQh7qLnYEmd/DmqM5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzv0H/kZHgdPYC9IeS4V/ZBM7oSndP5XgOUXrNhCdMbgIgQ3Xe12MC2eet9S7+60/BlQENnnMRHKoyAI2RYVDSE4Q="}],"size":781,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-0.1.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":1403302758874,"_cnpm_publish_time":1403302758874,"dist-tags":{"latest":"4.0.0"}}