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