{"name":"symlink-dir","version":"2.0.0","description":"Cross-platform directory symlinking","main":"dist/index.js","typings":"dist/index.d.ts","bin":{"symlink-dir":"dist/cli.js"},"keywords":["symlink","symlinking","junction","directory","dir","folder"],"scripts":{"pretest":"rimraf node_modules/src","test":"ts-node test","test-md":"mos t","premd":"rimraf node_modules/src && npm run tsc","md":"mos","tsc":"rimraf dist && tsc","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/zkochan/symlink-dir.git"},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/symlink-dir/issues"},"homepage":"https://github.com/zkochan/symlink-dir#readme","devDependencies":{"@types/tape":"^4.2.32","@types/tempy":"^0.2.0","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","rimraf":"^2.6.1","tape":"^4.9.1","tempy":"^0.2.1","ts-node":"^7.0.1","typescript":"^3.0.0"},"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","rename-overwrite":"^1.0.3"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"engines":{"node":">=6"},"gitHead":"d131e52d86dcd9f9a7ea5e723a2f584fe533e262","_id":"symlink-dir@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-M7ocki4GpAJKWl9KgZ8tcktP6xpV7uXqtyt/Z61NFd/XRmjyvuTWXk8+s2tjFLs2jS0MI8CKkWGYo8E0UM5nCg==","shasum":"73dd8ed93091440c0f8d4f954970495b0ded75e6","tarball":"http://registry-npm.ywwl.com/symlink-dir/download/symlink-dir-2.0.0.tgz","fileCount":9,"unpackedSize":10298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1gTHCRA9TVsSAnZWagAA//wP/ib2Qp5N4kUNhDgVchla\noqtCa+4BfOi7DLf9LOsTzNndAZXWMrw7i+4wk6vT6hPEE9xGN1F/oEgiVVXs\nfD7LCIYkVFYasEsT6zsPSRrEfkGPsvjtXQelkCgxOJPo0du5p8qbQSEGdjol\nGTMak83s4TBeNnTfKV4BYhVwSw47UUauxsys69ZXDmIJrpFHUAvrW0blfBB5\n2LfgE2EmSW0q3Q7kHQ9tw8Y6YW6zsg4BgfggX4MuVEC99N1RiFEvyzGEOXDR\nsXdixpwVCSHtigDaXEsyWNsjCFOGWhLI/nahOPIPCKN1GJJFV475OZIbnFIx\n3zxBRqsAs9Od2frqiHBsvWfh4bAN1fYll+8JlRljJLolEi0/DTIg/x1Ctnhm\njNO1xxAmLSC59grFMkf654ahelW0R/466bBCp2qz4OlPZZvR/91cnERZR9TI\nATIlFNGhETPcLD1bjPBdKCIR6sqr751/Arwqw2+OkP118v+j1jE/dGEx1FqU\nNGMRsWGi9sIZ2Gpqs5nQUFTbomkR5USXnhBBwnxMJY1Jd2oLNLBdSqIEWIjC\nXovbEK00qCKgjrDxmE7mBBzfNlQxv5YNk80rChpTOxX6Uf078ZuDuL9biOD7\nVptDyM4FsHZMg7qyvu13bf3KaXsyA+Fm2CGh0fYclpiHPAJaf3z2XPoBo0rb\n2l4+\r\n=UPCG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPxi3jhGbmt6Ff9E98+D/J5rlDhiworsOYwMFLhzojFAiAppR3uBXMvbqj/DJuWSzxnj2SjMIBa4b+ELx56/zDF3g=="}],"size":4199,"noattachment":false,"key":"/symlink-dir/-/symlink-dir-2.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symlink-dir_2.0.0_1540752582772_0.9364216409645318"},"_hasShrinkwrap":false,"readme":"# symlink-dir\n\n> Cross-platform directory symlinking\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/symlink-dir.svg)](https://www.npmjs.com/package/symlink-dir)\n<!--/@-->\n\n* Always uses \"junctions\" on Windows. Even though support for \"symbolic links\" was added in Vista+, users by default lack permission to create them\n* Any file or directory, that has the destination name, is renamed before creating the link\n\n## Installation\n\n```sh\npnpm add 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(target, path, opts?): Promise<{ reused: boolean, warn?: string }>`\n### `symlinkDir.sync(target, path, opts?): { reused: boolean, warn?: string }`\n\nCreates the link called `path` pointing to `target`.\n\nOptions:\n\n* `overwrite` - *boolean* - is `true` by default. When `false`, existing files at dest are not overwritten.\n\nResult:\n\n* `reused` - *boolean* - is `true` if the symlink already existed pointing to the `target`.\n* `warn` - *string* - any issues that happened during linking (it does mean a failure).\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","publish_time":1540752582936,"_cnpm_publish_time":1540752582936,"dist-tags":{"latest":"10.0.3","next":"5.0.0"}}