UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

117 lines (116 loc) 3.42 kB
{ "_args": [ [ { "raw": "path-type@^2.0.0", "scope": null, "escapedName": "path-type", "name": "path-type", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/read-pkg" ] ], "_from": "path-type@>=2.0.0 <3.0.0", "_id": "path-type@2.0.0", "_inCache": true, "_location": "/path-type", "_nodeVersion": "4.5.0", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/path-type-2.0.0.tgz_1475051315257_0.8221027220133692" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.9", "_phantomChildren": {}, "_requested": { "raw": "path-type@^2.0.0", "scope": null, "escapedName": "path-type", "name": "path-type", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/read-pkg" ], "_resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", "_shasum": "f012ccb8415b7096fc2daa1054c3d72389594c73", "_shrinkwrap": null, "_spec": "path-type@^2.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/read-pkg", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/path-type/issues" }, "dependencies": { "pify": "^2.0.0" }, "description": "Check if a path is a file, directory, or symlink", "devDependencies": { "ava": "*", "xo": "*" }, "directories": {}, "dist": { "shasum": "f012ccb8415b7096fc2daa1054c3d72389594c73", "tarball": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "ef08bdbd35fa01342ef6d80f2e8eb8b9c2cccc30", "homepage": "https://github.com/sindresorhus/path-type#readme", "keywords": [ "path", "fs", "type", "is", "check", "directory", "dir", "file", "filepath", "symlink", "symbolic", "link", "stat", "stats", "filesystem" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "path-type", "optionalDependencies": {}, "readme": "# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type)\n\n> Check if a path is a file, directory, or symlink\n\n\n## Install\n\n```\n$ npm install --save path-type\n```\n\n\n## Usage\n\n```js\nconst pathType = require('path-type');\n\npathType.file('package.json').then(isFile => {\n\tconsole.log(isFile);\n\t//=> true\n})\n```\n\n\n## API\n\n### .file(path)\n### .dir(path)\n### .symlink(path)\n\nReturns a `Promise` for a `boolean` of whether the path is the checked type.\n\n### .fileSync(path)\n### .dirSync(path)\n### .symlinkSync(path)\n\nReturns a `boolean` of whether the path is the checked type.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/path-type.git" }, "scripts": { "test": "xo && ava" }, "version": "2.0.0", "xo": { "esnext": true } }