{"name":"is-path-inside","version":"3.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":">=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":"cc9e12dcb78ec83e6769916f9e3347aea197378d","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.1","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-CKstxrctq1kUesU6WhtZDbYKzzYBuRH0UYInAVrkc/EYdB9ltbfE0gOoayG9nhohG6447sOOVGhHqsdmBvkbNg==","shasum":"7417049ed551d053ab82bba3fdd6baa6b3a81e89","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-3.0.1.tgz","fileCount":5,"unpackedSize":3916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH3TzCRA9TVsSAnZWagAAc6IQAJWclEx67R7S5cs4qTJk\ndO01mY1h6nOm0GgjbJ1F7b1/ZW0zBMp2n+9+0qTRBHM926PscvCKP5A5TSHY\nGcY4lqoYYh86Bxiz3YHssaOeQpXxSCRwxkCMvhBqJDVonv5LksOT5/ODC8uf\nAwgtFci1lpX2j5hP9xWERH6/MuP6yP6rWbf0/n7aLx/i5N85cuCam7zBph0C\n89Ci8ZBP8s4JcSelktGSfK9uGPk4OduZkw/R0vlYyo1DAYrsX/r1TsrtCqMs\ncNpkGizrkxMoIaisZgCwiabh92bvXBUhKUBFW123RMzGnqix07eMSDjAxmJ5\ndPBSJhHmlYfD1lUpvUXwUZu496m6dnNeNwz2JnzrKlXzZiSnbj9nDZYNM6Xi\ncq28Fcr+HW0HZJwU3Hb1yRidjUagJ7ECcTyAH7dEDnBW/tPQgufWG3cdhYr+\n6DUN3gEect7xXzRpVrtnfZezzMUp+mly7FDTuGMj/JB2Waq66ig4TiFdBqBS\nhDpjG1bpqQLdpWvV8eDxKeHGLClEbjndMHWdgJWWH7Vwm7E1MKHzfDkL+xh7\nkRGlMyLliEJEucF+ttt6lP/QoKxsp7niTktgsipjE74ERvQ5Nm4NbfN7vnf0\n9sTqMd/2dXvj+gEXm2FRdJm7FbQwOHxUF8GPx8yhPdD5T5WOpdRWEOYF4r1K\neer/\r\n=T6t8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECVzh01YnKE69KxqT4uzgEP1LDexqqQpoB8u3FfHDdbAiEA8l3EZZEeS2BcTWb8SiUxJnFGizKM/G7x8CDoOrYHdTQ="}],"size":1941,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-inside_3.0.1_1562342642731_0.42618042099088504"},"_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":1562342642853,"_cnpm_publish_time":1562342642853,"dist-tags":{"latest":"4.0.0"}}