{"name":"is-subdir","version":"1.0.3","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","scripts":{"test":"mos t && node test","md":"mos"},"engines":{"node":">=4"},"repository":{"type":"git","url":"https://github.com/zkochan/packages/tree/master/is-subdir"},"keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/master/is-subdir#readme","devDependencies":{"is-windows":"1.0.2","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^4.6.3"},"dependencies":{"better-path-resolve":"1.0.0"},"_id":"is-subdir@1.0.3","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-1mu7zN6mOCnPKvYJrZZaER7Z43Qz0VD+3ZCTlORxGQ+VECpAx6FPf1xuB4gWI3ovhQ3Lkx9BIUOg2RM6qQSvvQ==","shasum":"586a480bc6e7c3b39a67c4c2de29841e0a1d8e52","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.0.3.tgz","fileCount":4,"unpackedSize":2960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceb+DCRA9TVsSAnZWagAAXbYP/05E4uWq7WSnWglXhWMy\npwBjOb/3MaoRl6r/6Oj5SHzWtgmyCUeRk4MDOcs7spxeiTDNWLdDiIii9kv0\nw9SkJTAYxVdDa23zCPU5eGjYMQ19qtLSWGa/31GjF7KacrhhXFAgSN+L6mZ+\n39m5jdYPYTQZHY4ARWTo76q0jaGRRQ6tBpvNZJcp6kFZNrYUQen7tK5zu5Cd\nm8WrFEGe2beff44ttTW3SEnbR+LR8jhm//lAS+uQPvCLRpKklpf8VXQDsRbZ\nlbTUZrD/ZTbfmn7TPGLx4ksGj5S7ouARdU+uA+sN4TklIoC0AHjnjuOR1wie\n3KL4qB1Iq+zf6cMmcTFJGHKbzAI+oPlaN/UdXJ7nJ8kTy1kJ9tQ+w+Rc9of2\nnBB8jUPqyw/Y35VfYP4Qbx3J2S+sn7Fm28XtaXYpfteqa2mHyZ9mMxX4Srse\nug4K8hbWaq12xEV51+iXViLM4cHMkAxrlpR0O7gEmuDTjG6abnX+1dHF/pgO\nvtUpbN8v+6L/PlNV+ArOu/O6JIjVmIFON0Vb5Neb9ybbN4qUrZ6AMtVaezyK\npVkcYidw5LQnHQMFy56gU9R7YOOg+moFqLhlLLepc443YhruGLhyYXNGbZUR\nUZodep4iu2zrB8UIaS8Mypg6VsY11xv93UDMeILTufZHAnW5FxuUvg2cRnP1\nhwKU\r\n=oKIz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgaS82gZYpx7xVcIx98LYwto/IJsYPuPDdlLb/ZpStugIhAOldtLmeDmbznPzv8cYiNC+lbcHb2q9m5I59wYBptzgD"}],"size":1686,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.0.3.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-subdir_1.0.3_1551482754653_0.3707945386553779"},"_hasShrinkwrap":false,"readme":"# is-subdir\n\n> Return whether a directory is a subdirectory of another directory\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/is-subdir.svg)](https://www.npmjs.com/package/is-subdir)\n<!--/@-->\n\nCross-platform. Works correctly on Windows, where directory paths can start with disk drive letters in different casings. Like `c:\\foo` and `C:\\foo\\bar`.\n\nReturns `true` when the directories match. The `isSubdir.strict()` variant only returns true if the second parameter is a strict subdir of the first and not the same.\n\n## Installation\n\n```sh\n<npm|yarn|pnpm> add is-subdir\n```\n\n## Usage\n\n```js\n'use strict'\nconst path = require('path')\nconst isSubdir = require('is-subdir')\n\nconsole.log(isSubdir(process.cwd(), path.resolve('node_modules')))\n//> true\nconsole.log(isSubdir.strict('node_modules/tape', '../tape'))\n//> false\n```\n\n## API\n\n### `isSubdir(parentDir, subdir): boolean`\n### `isSubdir.strict(parentDir, subdir): boolean`\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","publish_time":1551482754802,"_cnpm_publish_time":1551482754802,"dist-tags":{"latest":"2.0.1","next":"1.1.1"}}