UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

136 lines (135 loc) 5.95 kB
{ "_args": [ [ { "raw": "symlink-dir@1.1.3", "scope": null, "escapedName": "symlink-dir", "name": "symlink-dir", "rawSpec": "1.1.3", "spec": "1.1.3", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/package-requester" ] ], "_from": "symlink-dir@1.1.3", "_id": "symlink-dir@1.1.3", "_inCache": true, "_location": "/symlink-dir", "_nodeVersion": "9.10.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/symlink-dir_1.1.3_1526119006516_0.3680362409079627" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.0.1", "_phantomChildren": {}, "_requested": { "raw": "symlink-dir@1.1.3", "scope": null, "escapedName": "symlink-dir", "name": "symlink-dir", "rawSpec": "1.1.3", "spec": "1.1.3", "type": "version" }, "_requiredBy": [ "/@pnpm/headless", "/@pnpm/package-requester", "/supi" ], "_resolved": "https://registry.npmjs.org/symlink-dir/-/symlink-dir-1.1.3.tgz", "_shasum": "b09af9599af5310c2fb77adc0c1613dee382ce4e", "_shrinkwrap": null, "_spec": "symlink-dir@1.1.3", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/package-requester", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", "url": "https://www.kochan.io" }, "bin": { "symlink-dir": "dist/cli.js" }, "bugs": { "url": "https://github.com/zkochan/symlink-dir/issues" }, "dependencies": { "@types/mz": "0.0.32", "@types/node": "^10.0.8", "graceful-fs": "^4.1.11", "is-windows": "^1.0.0", "mkdirp-promise": "^5.0.0", "mz": "^2.4.0" }, "description": "Cross-platform directory symlinking", "devDependencies": { "mos": "^2.0.0-alpha.3", "mos-plugin-readme": "^1.0.4", "rimraf": "^2.6.1", "typescript": "^2.0.3" }, "directories": {}, "dist": { "integrity": "sha512-klQgTYk7en8A69nAzZjJdaMXbGCmfh0DU+YLaZG/stHNp00VZSS3Pos238Ua7oCKVw57UszViod4D7RVRH6XHg==", "shasum": "b09af9599af5310c2fb77adc0c1613dee382ce4e", "tarball": "https://registry.npmjs.org/symlink-dir/-/symlink-dir-1.1.3.tgz", "fileCount": 9, "unpackedSize": 8915, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9rpfCRA9TVsSAnZWagAAPI4P/jkPejTX9jXJXRK/YgH7\nwL98OA/bM1ooZdea56idHNznR532Em+AVOrQE/j/jsx0vcXTQ0vPqLF8vMEk\nmoX5VZTttzun8ayTBGiL+i7kSaN2Q0gBAhrq7swab0h0HgCzPdNAC6jaERxw\nX3xk0QKKLMgCEHB+me+QJ64AgosGV3TGNJhHCW5kjwP7zHc48CZ4vVWuoV5H\n5XBSS2aUICHiPCt29OhhhPQPkCnUwVKGdIgOTJqGjI/fQzJxA7klWk67p6lc\nQdfxRSOzDSf+EpNzjeuw0l6dzN9Uy1+Gb0a7RgMrEHNcPNGAsWSP4BflImh+\nI7iappRlAQKAWhwS7YAEDhGxYSMAlBpFQGtQa6+uV6yu1zUHV8/tCUtIK2sF\nYhuwz2WlN2kgHO1h8fYfvvYBdN7sIJ1GQ7bnhtvbZUwaXDKHpS8Q84JZzKdl\n+cFsx5DFsU6dhz7vjlfkIDnKli5HZWVsObsMojRxFez5rKv22GjCIr2UCyoO\nqx848TrGnZbLu2eFpQjk8CwdoNv7PqGlb71fU0aurZyjje4en31VNZBstqZc\nzJQQWx+ASehNA9Ww7rg6i+YqyiVeJJlsfxrrWR9bqvljY/liKv6HRNqY7Z09\n46jJ0TaTzQHBR1O0icnV9bTrtY0BXCudLhYNzgustn8yGuEWwFrjuBUo8r/q\n//CD\r\n=Hxw0\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=4" }, "files": [ "dist/" ], "gitHead": "22861733cb837a196fd9eba178a3aafe37d8366f", "homepage": "https://github.com/zkochan/symlink-dir#readme", "keywords": [ "symlink", "symlinking", "junction", "directory", "dir", "folder" ], "license": "MIT", "main": "dist/index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "mos": { "plugins": [ "readme" ], "installation": { "useShortAlias": true } }, "name": "symlink-dir", "optionalDependencies": {}, "readme": "# symlink-dir\n\n> Cross-platform directory symlinking\n\n<!--@shields('npm', 'travis', 'appveyor')-->\n[![npm version](https://img.shields.io/npm/v/symlink-dir.svg)](https://www.npmjs.com/package/symlink-dir) [![Build Status](https://img.shields.io/travis/zkochan/symlink-dir/master.svg)](https://travis-ci.org/zkochan/symlink-dir) [![Build Status on Windows](https://img.shields.io/appveyor/ci/zkochan/symlink-dir/master.svg)](https://ci.appveyor.com/project/zkochan/symlink-dir/branch/master)\n<!--/@-->\n\nAlways uses \"junctions\" on Windows. Even though support for \"symbolic links\" was added in Vista+, users by default\nlack permission to create them\n\n## Installation\n\n```sh\nnpm i -S symlink-dir\n```\n\n## CLI Usage\n\nLets suppose you'd like to self-require your package. You can link it to its own node_modules:\n\n```sh\n# from -> to\nsymlink-dir . node_modules/my-package\n```\n\n## API Usage\n\n<!--@example('./example.js')-->\n```js\n'use strict'\nconst symlinkDir = require('symlink-dir')\nconst path = require('path')\n\nsymlinkDir('src', 'node_modules/src')\n .then(result => {\n console.log(result)\n //> { reused: false }\n\n return symlinkDir('src', 'node_modules/src')\n })\n .then(result => {\n console.log(result)\n //> { reused: true }\n })\n .catch(err => console.error(err))\n```\n<!--/@-->\n\n## API\n\n### `symlinkDir(src, dest): Promise<{reused: boolean}>`\n\nCreates a symlink in `dest` that points to `src`. Returns an object that contains a boolean property called `reused`.\n`reused` is `true` if the symlink already existed pointing to the `src`.\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/symlink-dir.git" }, "scripts": { "md": "mos", "premd": "rimraf node_modules/src && npm run tsc", "prepublishOnly": "npm run tsc", "pretest": "rimraf node_modules/src", "test": "npm run tsc && mos t", "tsc": "rimraf dist && tsc" }, "typings": "dist/index.d.ts", "version": "1.1.3" }