{"name":"is-path-inside","version":"3.0.2","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":"e245fb401b668deb5cb1061ed1c7e68ab06cccbe","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.2","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==","shasum":"f5220fc82a3e233757291dddc9c5877f2a1f3017","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-3.0.2.tgz","fileCount":5,"unpackedSize":4408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkcpXCRA9TVsSAnZWagAAvT8P/0CY+P2eIrRkE09fQMKn\n3q3ae0juf/NF7cb6GzI4c1Wr9kWOqdrYQwD94jBns15Ha8npA15Q2LQs+pav\nawPp/07dLkTQa0O+NDCz8/lCx0/rAGDFVvKXrwyyycQosvSmVkw64j2Njg9p\nfOGTqW/7rC+LA60LeT+VI0gnFtY7fDrGVJdDbg0HEpinmA3XzAQCJZwa1VVw\nboMp/lxfPxZPNi4xIszua5N2W26GO85mUvuTQ7SrgmcvKSn7ENpA696DAZvt\nWiE8Sl0OF3ppCEpX8M6fmqJqQlkohWrQ7mLIJz2tl43+ON1Xzukz7RK/Pn3m\nkRwQRgGVQh9htU20P5ZGmaSdsS2thsAlmL8+3EUjnyexMsGNH9QkG7qL35TT\n2vTaMptsB3wxPJVn4diFqZs1Ut3NDq9JA6hg9uZVqzA0A2Ol4N4Hi0svZWxk\nNnUIigEKAhYPT46bb8yT+TlrCrANePSegmDPoOT7WRuY+qs5eY8iU8Y/u/Y6\nyqr1gthgTdCY4X4OS81L62ub40+G5hFE2SeRcp43Mr2J+sSGdGiTulXa/+bG\nYS2FqJkANX7DnYgcG3T3fR5PPMN1J7COxy5Xak9sMYxyOx/om3ALq++wbvRH\nNHCOqYV7NXEhPiF/aMABN9QKeGWImJVQRXYBXrDfJ2Ri671wGQ7g6o+b/r9/\nCcMc\r\n=vqKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGAw461A66msBbyBZ0FV4EyCv3Z80Zpekgd0ePTC9nzAiA6mt1UP0pRmVC+ufJNQuIGi6u5aphldkwhKY9sOYyIJA=="}],"size":2079,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-3.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-inside_3.0.2_1569835606260_0.5815231309008762"},"_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":1569835606419,"_cnpm_publish_time":1569835606419,"dist-tags":{"latest":"4.0.0"}}