{"_id":"is-subdir","_rev":"1532009","name":"is-subdir","description":"Return whether a directory is a subdirectory of another directory","dist-tags":{"latest":"2.0.1","next":"1.1.1"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"time":{"modified":"2026-10-13T02:00:03.000Z","created":"2017-04-14T17:59:57.868Z","2.0.1":"2026-09-28T13:54:39.545Z","2.0.0":"2026-03-11T07:52:34.927Z","1.2.0":"2021-01-05T16:52:45.485Z","1.1.1":"2019-10-06T22:09:34.389Z","1.0.3":"2019-03-01T23:25:54.802Z","1.0.2":"2017-09-30T14:48:29.527Z","1.0.1":"2017-07-16T16:39:35.233Z","1.0.0":"2017-04-14T17:59:57.868Z"},"users":{},"author":{"url":"https://www.kochan.io","name":"Zoltan Kochan"},"repository":{"url":"https://github.com/zkochan/packages/tree/main/is-subdir","type":"git"},"versions":{"2.0.1":{"_id":"is-subdir@2.0.1","dist":{"shasum":"5bea20873c486786436788c4b52cafd4bfd56d23","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-2.0.1.tgz","fileCount":5,"integrity":"sha512-lHCN190C9bBs4LoyMjt+FzxKBjBwzhdh7v6NiHpi2fUSZho28CN8y6ZH315Uqy3mDKjospIDD5xqE6uPtJi9Ng==","signatures":[{"sig":"MEUCIQD7ahEGULkKdwz+drG+YZoDBG2vxhfmWRbklrEBI1tg8QIgXYmKnsUjdN/QM5wamY1PBZSwnk2bD1U6wn1iV5Jxl3w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEsZrNZ/s8aXcUHKe4jJa4sIQpBnfVpXo7ph6t0slQvWAiEAuFb3GY6MGMP3X4ht+SLChqHeADepTHg1+MzeS97mJkM="}],"unpackedSize":3823,"size":1979,"noattachment":false,"key":"/is-subdir/-/is-subdir-2.0.1.tgz"},"main":"index.js","name":"is-subdir","type":"module","author":{"url":"https://www.kochan.io","name":"Zoltan Kochan"},"engines":{"node":">=22.13"},"exports":"./index.js","license":"MIT","scripts":{"test":"node --test test.js"},"version":"2.0.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"homepage":"https://github.com/zkochan/packages/tree/main/is-subdir#readme","keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"repository":{"url":"https://github.com/zkochan/packages/tree/main/is-subdir","type":"git"},"description":"Return whether a directory is a subdirectory of another directory","directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"dependencies":{"better-path-resolve":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"is-windows":"^1.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-subdir_2.0.1_1790603679468_0.4618393404612149"},"publish_time":1790603679545,"_cnpm_publish_time":1790603679545},"2.0.0":{"name":"is-subdir","version":"2.0.0","description":"Return whether a directory is a subdirectory of another directory","type":"module","main":"index.js","exports":"./index.js","engines":{"node":">=22.13"},"repository":"https://github.com/zkochan/packages/tree/main/is-subdir","keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/main/is-subdir#readme","devDependencies":{"is-windows":"^1.0.2"},"dependencies":{"better-path-resolve":"^2.0.0"},"scripts":{"test":"node --test test.js"},"_nodeVersion":"25.6.1","_id":"is-subdir@2.0.0","dist":{"integrity":"sha512-iOXmZKniv4jGFMSYc1K3V/XNl30X1d/m86BKTiDeE2MDULREgBiNpLXsqQKjyETOkWbOyXNQD4M4AZCH51pm7g==","shasum":"5c99942020791a4b3143d2848252eda417da3ffc","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-2.0.0.tgz","fileCount":5,"unpackedSize":3598,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCCLvpmCojT7qdPF/f5PBczLRn1vwS3VlXGIeYfekkooQIgPXxTI1T+hNqMGDSX/iZ6r8JsZ+BqnNPozySPCrEiSGY="}],"size":1889,"noattachment":false,"key":"/is-subdir/-/is-subdir-2.0.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-subdir_2.0.0_1773215554745_0.9605457438816234"},"_hasShrinkwrap":false,"publish_time":1773215554927,"_cnpm_publish_time":1773215554927},"1.2.0":{"name":"is-subdir","version":"1.2.0","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","scripts":{"test":"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":"^5.0.1"},"dependencies":{"better-path-resolve":"1.0.0"},"_id":"is-subdir@1.2.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==","shasum":"b791cd28fab5202e91a08280d51d9d7254fd20d4","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.2.0.tgz","fileCount":5,"unpackedSize":3859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9JleCRA9TVsSAnZWagAAqXUP/3na2XQMoJi+kbXmjQd9\ncSiPcrpisZ2KbwvUSgP316TkFZkuVaw8OgTktRJIuxLP3XtOiyZ9z11e8R7Y\nXCc2PHk48e1YI8dAdCbbBfRciPUe/JbQGkwsTeXCh29pMA7k2DFI8f3EaJcU\ncx4H89MWwuZJXNv+BYGRlY+UN1mHariqSOPg7VHIEgw7Lt8ri0JQWuXfHjxD\nQrQ3dSLysgO6HsBVPGDV7VL2NzS1N6XjVqygsKX+9zp/HdMJGT5FmWtWSzvL\nKLPg9oYKhwfjpnERB27ag8LD617EHJNrPyEl+EWpQnjvphqA8I9voaueiX+B\nqYYZpWWMulMwJcq/mYZgBcPiqQhQkiGXV7FNjiOb7aFrh2e4ZKmOHzXxEkmX\n7WpLF6wwgOaqOAaW0V6qsy3EuYr8lYzqR+b1MA8MKQ+J7vN1OODzpNeTVgcz\nxIuVRLejrcfcoejfGPX6ITHh5TsTijK/pl5s2L5abQyIw/XV761NDVq1HLqn\noXBh9e+l+gf5w8uptDrLaQs5CDwBxEC6+0Z7GpK3lx6lFUHhQ8Hr685g8EzL\n8gRdeO/bV3lUw2sPugONZ01D5UZql+jLyjHVDTrfj74zUnBlkeqmfNvU+muw\nyvIocR8eBUDdkDzTiDbTYh1BER3W1oE8trSR2351andw6OI3O2+CAA2ZRjkc\nhO2g\r\n=rDZw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdOmjLCk7GwJ0/CIxDQ8zyydaOXBQ+I2BSrfh1iPcYNQIgJcQA4pQ8Mx3TMk5frUcse3skAD9lgSihTSN6YwSyBgE="}],"size":1960,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.2.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-subdir_1.2.0_1609865565352_0.3023555870075294"},"_hasShrinkwrap":false,"publish_time":1609865565485,"_cnpm_publish_time":1609865565485},"1.1.1":{"name":"is-subdir","version":"1.1.1","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","scripts":{"test":"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"},"readmeFilename":"README.md","_id":"is-subdir@1.1.1","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-VYpq0S7gPBVkkmfwkvGnx1EL9UVIo87NQyNcgMiNUdQCws3CJm5wj2nB+XPL7zigvjxhuZgp3bl2yBcKkSIj1w==","shasum":"423e66902f9c5f159b9cc4826c820df083059538","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.1.1.tgz","fileCount":5,"unpackedSize":3192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmmYeCRA9TVsSAnZWagAASzEP/3rmu72MlmEfjHgq8XBi\nl7ukfzQvv9G+htzJ/BHezwqGYryMmuM/PFCEeaF/MCRCi0wb3ozETbECGZCZ\n3JbhQBP8JWnFh80b9qtu1nz4Zlu4KKyfENNJcNCilbgDAZHHPccrFrUzSUCA\nvUTHndSEOm/0o4CQ3yujL39smZX1AXYnv5sAf7z6ndvrMiYW+WBNfVapQmHy\no47Wbszil+Im79CKHkiCWNOufOlW0wuTMUpwIvFEj34D++RYKkLPTxd2B5Kz\nMUqHBDrZsuMQhW4YkfvMnW6Zfnkg7Y3d9kg4VmZXdrDgFm+x62qOwibfj1n+\nvMV5X7ZpanjBFkYG8+DvXrftHxQ7t4J0a/uSperUTLn+ZhrNyPPmAWSpYEx9\n29tkY8r7fehT0soR5BFKiGfzEjNGYZ/NtxjfyZltvBKE4uLok0X9KkZ6QbJZ\nmTFdv4XtFta2GVmmcjt0+Bz6ClemYzFYjGFu1BIquXSOmfw11PZAY27L0OUZ\nwdqKZbOxbpY7y/wbDMfBU5XzYXrnB6y0ID5l5JHh5TJENANWyBjuzD2fBz6u\nlX2RaHIq3gD7f40AR9WdBKfJ7Wb7Ekiie12jX1hLLyaYVd0sUcotSMUOczPf\nSzaW5YqA829h3+czcyGJ5n/a/R6AO8OOltZEeEEmMOB86zpp8fDhH8LfAozR\n6xY6\r\n=FJTR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy8D70lT/iJN0x58OZbxdWEqqPGpFDhutVLSKOeEt1xQIgQbcFgY4BIGm/Rbur2eQRk8q1H2YAD3rTCg5r2dePA+8="}],"size":1821,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.1.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-subdir_1.1.1_1570399774257_0.7357700826282281"},"_hasShrinkwrap":false,"publish_time":1570399774389,"_cnpm_publish_time":1570399774389},"1.0.3":{"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,"publish_time":1551482754802,"_cnpm_publish_time":1551482754802},"1.0.2":{"name":"is-subdir","version":"1.0.2","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","files":["index.js"],"scripts":{"test":"mos t && node test","md":"mos"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/zkochan/is-subdir.git"},"keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"license":"MIT","bugs":{"url":"https://github.com/zkochan/is-subdir/issues"},"homepage":"https://github.com/zkochan/is-subdir#readme","dependencies":{"is-windows":"^1.0.0"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^4.6.3"},"gitHead":"8664605bc829c432a2ffd932a145345e8123738a","_id":"is-subdir@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"6.4.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"integrity":"sha512-2H3vM92ez7TjW6T2e4G7AQVm/1/UA/qikNO0/aIi2SkouUU2wXW2CQ5Owiz8oaaFQpjNl74B5LIjTcM1htr2mQ==","shasum":"28cd419f66d91403ca8181ab55257687d99562de","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJEW/29s7yBGz0i+nMFfkALnNwCo7c/DYTrz5h6O+7nAiBqbzT23XtWoWtn/lG1CFNZbMo6LRsDswcj2gB7XGob3A=="}],"size":1989,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.0.2.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-subdir-1.0.2.tgz_1506782908558_0.5768534226808697"},"directories":{},"publish_time":1506782909527,"_cnpm_publish_time":1506782909527},"1.0.1":{"name":"is-subdir","version":"1.0.1","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","files":["index.js"],"scripts":{"test":"mos t && node test","md":"mos"},"repository":{"type":"git","url":"git+https://github.com/zkochan/is-subdir.git"},"keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"license":"MIT","bugs":{"url":"https://github.com/zkochan/is-subdir/issues"},"homepage":"https://github.com/zkochan/is-subdir#readme","dependencies":{"is-windows":"^1.0.0"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^4.6.3"},"gitHead":"5f41bd12cc08a57440b7d951f92bd4da997fc0d0","_id":"is-subdir@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"integrity":"sha512-cw2GXLsan/811SYDDyOJFN/E8zYzA3/vj91qHdoX6aacEovK17pHljR4uvJImOsrX+ofLQ2RHNyZWUq2i23+TA==","shasum":"0af5cc8d5b2da72ae4af7233f900b87c1da52546","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnqKEr6OHo5P+FmStuEMrYO0lm5ex3Ij19C/lACyG/pgIhANh8iaoeXF+38DRhWMHbfa53E6uv2609wX6T+A21XYnu"}],"size":1903,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-subdir-1.0.1.tgz_1500223174233_0.1908454615622759"},"directories":{},"publish_time":1500223175233,"_cnpm_publish_time":1500223175233},"1.0.0":{"name":"is-subdir","version":"1.0.0","description":"Return whether a directory is a subdirectory of another directory","main":"index.js","files":["index.js"],"scripts":{"test":"mos t && node test","md":"mos"},"repository":{"type":"git","url":"git+https://github.com/zkochan/is-subdir.git"},"keywords":["subdirectory","subfolder","subpath","directory","folder","path"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"license":"MIT","bugs":{"url":"https://github.com/zkochan/is-subdir/issues"},"homepage":"https://github.com/zkochan/is-subdir#readme","dependencies":{"is-windows":"^1.0.0"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^4.6.3"},"gitHead":"4ae6eaa989a3cb5a91f1b3f17fd340c16983ad0d","_id":"is-subdir@1.0.0","_shasum":"73b63b91fb4019d287674d9129517b66c97b33f5","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.4.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"73b63b91fb4019d287674d9129517b66c97b33f5","tarball":"http://registry-npm.ywwl.com/is-subdir/download/is-subdir-1.0.0.tgz","integrity":"sha512-HAdEFeavd6ILOb3vy/bNnppFMNaXt90dg+PinZ1fEPBxnXyUn1/PPnHrwhBvdK22g0z4G/1HkDF3mKbLXtx4XA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa4/l2cOcBayV98bw71HvEPHezQKuaWYYSN5gmfVOQEwIhAL3Uisnhfy/UyixxC0mM+UeJlC8MZPc7zXR22Ll8cpOG"}],"size":1904,"noattachment":false,"key":"/is-subdir/-/is-subdir-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-subdir-1.0.0.tgz_1492192794797_0.17171295662410557"},"directories":{},"publish_time":1492192797868,"_cnpm_publish_time":1492192797868}},"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","_attachments":{},"homepage":"https://github.com/zkochan/packages/tree/main/is-subdir#readme","license":"MIT"}