{"name":"is-path-inside","version":"2.1.0","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":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","inside","folder","directory","dir","file","resolve"],"dependencies":{"path-is-inside":"^1.0.2"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"2c712b73250b94cec65b8c815b687a0d115e5724","bugs":{"url":"https://github.com/sindresorhus/is-path-inside/issues"},"homepage":"https://github.com/sindresorhus/is-path-inside#readme","_id":"is-path-inside@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==","shasum":"7c9810587d659a40d27bcdb4d5616eab059494b2","tarball":"http://registry-npm.ywwl.com/is-path-inside/download/is-path-inside-2.1.0.tgz","fileCount":5,"unpackedSize":3088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctLJPCRA9TVsSAnZWagAAaxEP/jnemeaO9y+4dl3vOLJs\nAAcUvq8FyKl3/FlmW9cJN2+C8860tLH7ESzRDlRS1AyKaMndOufSWuo5LNSR\n2ilqM8US2yzoQ0z5JuAMHHePBSHk9PH7pVp7b3pKSy2LGS+ZsoVKo+ZM8JJT\ntgBAFF6aVnwHKGzBI5uYvc1KvIx1AqR4tDT9NPai9KJwFrt0dQCxvK4ZADUy\nyxgumB5Lwu9kWQwDYMbLq8qMbj+sarKGU1pyTrRFSE9/gpxY027oWFeo/6Fr\nSm4Mnzl3JroatuobnZKjJ1EdTt9s8haHXZGmTVBhPK/hJraRgTS1qzPAlnPp\nc5T3dIICOGLQIQxdvtJ0mh6BqgJNwXPXPjBjJ1Z4ApD5EHRiKVVthV/RaenK\nQaSnCxEdlj00vnoTWyvRYMjv8tNWMJdTCBPHE4s7wm3bFdk4DssUHQ8x1IwL\nsAjRYSmFhPMjipVVOTM6ZMpmSC2eQp6hW6+eO5kTqvMMqzAKKLKvHCDLDlDf\nobxkXT+qfYKY9urTkne6/K14l46z0Z6IeWf7ApepYxG0P9L9lqgZFTiQS5m2\n8VN7cyfLVr0c/wHgSTQh4+z+Q7cSdvG8kC9t8Uj4u+mgZSC2TrfqQMNVjByv\nfpnkmzxcyYk7V1Fc+3B1Sei5vwfo395cB9jTLPtveSfc6RgiYz5nTdiAIqYH\ne9DZ\r\n=xHOY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmIm/Gr05VKRIGUG9O3XW/CC9CmhpZk7jo37BiS0D2owIhAMdxQihwvSryIwqCBEBkryy6D4pgvAdnXKtyTRLQ9Git"}],"size":1569,"noattachment":false,"key":"/is-path-inside/-/is-path-inside-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-inside_2.1.0_1555345999308_0.36274390118968913"},"_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":1555345999419,"_cnpm_publish_time":1555345999419,"dist-tags":{"latest":"4.0.0"}}