UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

123 lines (122 loc) 3.99 kB
{ "_args": [ [ { "raw": "root-link-target@^1.0.1", "scope": null, "escapedName": "root-link-target", "name": "root-link-target", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/store-path" ] ], "_from": "root-link-target@>=1.0.1 <2.0.0", "_id": "root-link-target@1.0.1", "_inCache": true, "_location": "/root-link-target", "_nodeVersion": "6.11.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/root-link-target_1.0.1_1518892117788_0.5905837121811512" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "root-link-target@^1.0.1", "scope": null, "escapedName": "root-link-target", "name": "root-link-target", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "_requiredBy": [ "/@pnpm/store-path" ], "_resolved": "https://registry.npmjs.org/root-link-target/-/root-link-target-1.0.1.tgz", "_shasum": "8a6e095538a314222685495c78cda03452f3baef", "_shrinkwrap": null, "_spec": "root-link-target@^1.0.1", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/store-path", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", "url": "https://www.kochan.io/" }, "bugs": { "url": "https://github.com/zkochan/root-link-target/issues" }, "dependencies": { "can-link": "^1.0.1", "graceful-fs": "^4.1.11", "next-path": "^1.0.0", "path-temp": "^1.0.0" }, "description": "Gets the shortest directory to which a file can be linked", "devDependencies": { "mos": "^2.0.0-alpha.3", "mos-plugin-readme": "^1.0.4", "package-preview": "^1.0.5", "standard": "^10.0.3", "tape": "^4.8.0" }, "directories": {}, "dist": { "integrity": "sha512-FIuNwTKaZMndvVKGWDtMiwWoAW9Qs2Yh8gHz3ILHC9u7YBLRrvnfQeO8DQQq6+rdNmfCjM3oNLl6eQ6km5co0A==", "shasum": "8a6e095538a314222685495c78cda03452f3baef", "tarball": "https://registry.npmjs.org/root-link-target/-/root-link-target-1.0.1.tgz", "fileCount": 5, "unpackedSize": 4361 }, "engines": { "node": ">=4" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "002a3ae0f98abbb30a129351e61391ded7b5aa02", "homepage": "https://github.com/zkochan/root-link-target#readme", "keywords": [ "link", "hardlink", "fs" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "zkochan", "email": "z@kochan.io" } ], "mos": { "plugins": [ "readme" ], "installation": { "useShortAlias": true } }, "name": "root-link-target", "optionalDependencies": {}, "readme": "# root-link-target\n\n> Gets the shortest directory to which a file can be linked\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/root-link-target.svg)](https://www.npmjs.com/package/root-link-target) [![Build Status](https://img.shields.io/travis/zkochan/root-link-target/master.svg)](https://travis-ci.org/zkochan/root-link-target)\n<!--/@-->\n\n## Installation\n\n```sh\nnpm i -S root-link-target\n```\n\n## Usage\n\n```js\nconst rootLinkTarget = require('root-link-target')\n\ncanLink.sync('C:\\\\sub\\\\dir\\\\foo.txt')\n//> C:\\\\\n```\n\n## API\n\n### `rootLinkTarget.sync(filename): string`\n\nReturns the shortest directory to which `filename` can be linked\n\n### `rootLinkTarget(filename): Promise<string>`\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/root-link-target.git" }, "scripts": { "md": "mos", "test": "standard && mos t && preview && node test" }, "typings": "index.d.ts", "version": "1.0.1" }