UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

113 lines (112 loc) 4.02 kB
{ "_args": [ [ { "raw": "resolve-link-target@1.0.1", "scope": null, "escapedName": "resolve-link-target", "name": "resolve-link-target", "rawSpec": "1.0.1", "spec": "1.0.1", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/supi" ] ], "_from": "resolve-link-target@1.0.1", "_id": "resolve-link-target@1.0.1", "_inCache": true, "_location": "/resolve-link-target", "_nodeVersion": "8.9.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/resolve-link-target-1.0.1.tgz_1510514795987_0.4227564607281238" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "5.5.1", "_phantomChildren": {}, "_requested": { "raw": "resolve-link-target@1.0.1", "scope": null, "escapedName": "resolve-link-target", "name": "resolve-link-target", "rawSpec": "1.0.1", "spec": "1.0.1", "type": "version" }, "_requiredBy": [ "/is-inner-link", "/remove-all-except-outer-links", "/supi" ], "_resolved": "https://registry.npmjs.org/resolve-link-target/-/resolve-link-target-1.0.1.tgz", "_shasum": "dd3bd8cf6c884467f4116742472ab4e79ed0dbe8", "_shrinkwrap": null, "_spec": "resolve-link-target@1.0.1", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/supi", "author": { "name": "Zoltan Kochan" }, "bugs": { "url": "https://github.com/zkochan/resolve-link-target/issues" }, "dependencies": { "graceful-fs": "^4.1.11" }, "description": "Resolve a symlink's (or junction's) target", "devDependencies": { "standard": "^10.0.2", "symlink-dir": "^1.0.2", "tape": "^4.6.3" }, "directories": {}, "dist": { "integrity": "sha512-uid343+whX+g+LLUzwCYaZBOZPX8Hi3Y7qZBr0r1Rvb0y6WMWVLT32uuGllxD5uNQR+mddUE/Dx/wwvgGrZLSA==", "shasum": "dd3bd8cf6c884467f4116742472ab4e79ed0dbe8", "tarball": "https://registry.npmjs.org/resolve-link-target/-/resolve-link-target-1.0.1.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "884f635830a113a34ea62dffc493b25c955fec60", "homepage": "https://github.com/zkochan/resolve-link-target#readme", "keywords": [ "symlink", "junction", "link", "target", "absolute", "resolve", "readlink", "fs", "filesystem" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "name": "resolve-link-target", "optionalDependencies": {}, "readme": "# resolve-link-target\n\n> Resolve a symlink's (or junction's) target\n\n[![npm version](https://img.shields.io/npm/v/resolve-link-target.svg)](https://www.npmjs.com/package/resolve-link-target) [![Build Status](https://img.shields.io/travis/zkochan/resolve-link-target/master.svg)](https://travis-ci.org/zkochan/resolve-link-target) [![Build Status on Windows](https://img.shields.io/appveyor/ci/zkochan/resolve-link-target/master.svg)](https://ci.appveyor.com/project/zkochan/resolve-link-target/branch/master)\n\n## Installation\n\n```\nnpm install resolve-link-target\n```\n\n## Usage\n\n```js\nconst resolveLinkTarget = require('resolve-link-target')\n\nresolveLinkTarget('path-to-symlink').then(targetPath => console.log(targetPath))\n//> \"/home/target\"\n\nresolveLinkTarget.sync('path-to-symlink')\n//> \"/home/target\"\n```\n\n## API\n\n### `resolveLinkTarget(linkPath)`\n\nReturns a `Promise`.\n\n### `resolveLinkTarget.sync(linkPath)`\n\n#### linkPath\n\nType: `string`\n\nPath to the symlink or junction that should be resolved.\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/resolve-link-target.git" }, "scripts": { "test": "standard && tape test.js" }, "typings": "index.d.ts", "version": "1.0.1" }