UNPKG

pnpm

Version:

Fast, disk space efficient package manager

120 lines (119 loc) 4.43 kB
{ "_args": [ [ { "raw": "is-subdir@1.0.3", "scope": null, "escapedName": "is-subdir", "name": "is-subdir", "rawSpec": "1.0.3", "spec": "1.0.3", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm" ] ], "_from": "is-subdir@1.0.3", "_hasShrinkwrap": false, "_id": "is-subdir@1.0.3", "_location": "/is-subdir", "_nodeVersion": "10.5.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/is-subdir_1.0.3_1551482754653_0.3707945386553779" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.1.0", "_phantomChildren": {}, "_requested": { "raw": "is-subdir@1.0.3", "scope": null, "escapedName": "is-subdir", "name": "is-subdir", "rawSpec": "1.0.3", "spec": "1.0.3", "type": "version" }, "_requiredBy": [ "/", "/@pnpm/link-bins", "/is-inner-link", "/remove-all-except-outer-links", "/supi" ], "_resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.0.3.tgz", "_shasum": "586a480bc6e7c3b39a67c4c2de29841e0a1d8e52", "_shrinkwrap": null, "_spec": "is-subdir@1.0.3", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm", "author": { "name": "Zoltan Kochan", "url": "https://www.kochan.io" }, "dependencies": { "better-path-resolve": "1.0.0" }, "description": "Return whether a directory is a subdirectory of another directory", "devDependencies": { "is-windows": "1.0.2", "mos": "^2.0.0-alpha.3", "mos-plugin-readme": "^1.0.4", "tape": "^4.6.3" }, "directories": {}, "dist": { "integrity": "sha512-1mu7zN6mOCnPKvYJrZZaER7Z43Qz0VD+3ZCTlORxGQ+VECpAx6FPf1xuB4gWI3ovhQ3Lkx9BIUOg2RM6qQSvvQ==", "shasum": "586a480bc6e7c3b39a67c4c2de29841e0a1d8e52", "tarball": "https://registry.npmjs.org/is-subdir/-/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" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "homepage": "https://github.com/zkochan/packages/tree/master/is-subdir#readme", "keywords": [ "subdirectory", "subfolder", "subpath", "directory", "folder", "path" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "mos": { "plugins": [ "readme" ], "installation": { "useShortAlias": true } }, "name": "is-subdir", "optionalDependencies": {}, "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\n## Installation\n\n```sh\nnpm i -S 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\n```\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/zkochan/packages/tree/master/is-subdir" }, "scripts": { "md": "mos", "test": "mos t && node test" }, "version": "1.0.3" }