{"_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"},"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":1790603679545,"_cnpm_publish_time":1790603679545,"dist-tags":{"latest":"2.0.1","next":"1.1.1"}}