@zkochan/pnpm
Version:
Fast, disk space efficient package manager
119 lines (118 loc) • 3.88 kB
JSON
{
"_args": [
[
{
"raw": "is-subdir@^1.0.2",
"scope": null,
"escapedName": "is-subdir",
"name": "is-subdir",
"rawSpec": "^1.0.2",
"spec": ">=1.0.2 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm"
]
],
"_from": "is-subdir@>=1.0.2 <2.0.0",
"_id": "is-subdir@1.0.2",
"_inCache": true,
"_location": "/is-subdir",
"_nodeVersion": "6.4.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/is-subdir-1.0.2.tgz_1506782908558_0.5768534226808697"
},
"_npmUser": {
"name": "zkochan",
"email": "zoltan.kochan@gmail.com"
},
"_npmVersion": "5.4.2",
"_phantomChildren": {},
"_requested": {
"raw": "is-subdir@^1.0.2",
"scope": null,
"escapedName": "is-subdir",
"name": "is-subdir",
"rawSpec": "^1.0.2",
"spec": ">=1.0.2 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/",
"/is-inner-link",
"/remove-all-except-outer-links",
"/supi"
],
"_resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.0.2.tgz",
"_shasum": "28cd419f66d91403ca8181ab55257687d99562de",
"_shrinkwrap": null,
"_spec": "is-subdir@^1.0.2",
"_where": "/home/zkochan/src/pnpm/packages/pnpm",
"author": {
"name": "Zoltan Kochan",
"url": "https://www.kochan.io"
},
"bugs": {
"url": "https://github.com/zkochan/is-subdir/issues"
},
"dependencies": {
"is-windows": "^1.0.0"
},
"description": "Return whether a directory is a subdirectory of another directory",
"devDependencies": {
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"tape": "^4.6.3"
},
"directories": {},
"dist": {
"integrity": "sha512-2H3vM92ez7TjW6T2e4G7AQVm/1/UA/qikNO0/aIi2SkouUU2wXW2CQ5Owiz8oaaFQpjNl74B5LIjTcM1htr2mQ==",
"shasum": "28cd419f66d91403ca8181ab55257687d99562de",
"tarball": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.0.2.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "8664605bc829c432a2ffd932a145345e8123738a",
"homepage": "https://github.com/zkochan/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', 'travis', 'appveyor')-->\n[](https://www.npmjs.com/package/is-subdir) [](https://travis-ci.org/zkochan/is-subdir) [](https://ci.appveyor.com/project/zkochan/is-subdir/branch/master)\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<!--@example('./example.js')-->\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\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/zkochan/is-subdir.git"
},
"scripts": {
"md": "mos",
"test": "mos t && node test"
},
"version": "1.0.2"
}