{"name":"copy-symlink","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"copy symlink, because fs.copyFile can't","homepage":"http://github.com/coderaiser/copy-symlink","keywords":["copy","symlink"],"repository":{"type":"git","url":"git://github.com/coderaiser/copy-symlink.git"},"scripts":{"test":"madrun test","fix:lint":"madrun fix:lint","lint":"madrun lint","lint:test":"madrun lint:test","watch:test":"madrun watch:test","watcher":"madrun watcher","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"license":"MIT","engines":{"node":">=10"},"main":"lib/copy-symlink.js","devDependencies":{"coveralls":"^3.0.0","eslint":"^7.9.0","eslint-plugin-node":"^11.1.0","eslint-plugin-putout":"^5.1.1","madrun":"^7.0.4","mock-require":"^3.0.2","nodemon":"^2.0.4","nyc":"^15.1.0","putout":"^10.0.3","supertape":"^2.0.1","try-to-catch":"^3.0.0"},"gitHead":"9ea4d09ac333b97e6f1437014b902d03f341a523","bugs":{"url":"https://github.com/coderaiser/copy-symlink/issues"},"_id":"copy-symlink@2.0.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-5zTbLb0sT5jLl/HK64+36JLwwqXXTwFCMFYPE9uHJN3BZwnZzwLnkHerT7wAPe+LIDmM5FKWW6xMfCGAklHSeg==","shasum":"dde238599accbe0d474a9d3c3bf296ce7026d629","tarball":"http://registry-npm.ywwl.com/copy-symlink/download/copy-symlink-2.0.0.tgz","fileCount":5,"unpackedSize":4871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbgUBCRA9TVsSAnZWagAAYusP/iBDAJR8MsM3+Oo05GRB\n/o1nmy8UBm4PIQulmAuXVp3ofbmqLYl9+Yoq2opmIc5Ve2s1JON3rWf3KtdS\nowyCw9uE2kilQ1H0gal2tGUrYtwuhrxxI1FJqvPneQnZNPH/a1SxchZVAGh4\nBVSI7dZKwZ6kbWVaNmkoQ+7sdUvFTAdtOJM/eGloyh0a1NlxCaSzJcU9hDbI\nH0HtgWSI08rKE31AF5X+Gw6FbP1zbDS14B1+HCKCYT9GsZWtBSQnOBRk8ULd\n81F1qG/HBQI+NB1XpxiEpK3qd1AlhE/g6oC1jRfxQbX2Or7g/rUwkUekUbIN\n8R+rVEDejeHzFzXWuHUoqV/fls5d9Tz3RBDPTAIWSlkVCyNO1nZaZRc5ZJx9\nEgEYEVltWkmKJtUOPIvISAYGYkEIhh6+99reWTLpjZxSC2U9qSzauP5QxikW\n0+iNQR8lOTTKZtTS1/5mbH1ca2+8gsmyZSrSUJySuhw4zEaHxSDrpqzDaFC1\nqCBWIZXTw5OOnCQSuaa4FjJS6ZhtGL+FyTCbztZ6Y16RBb7heCEL3E74MNc8\n7vXMU9FENUoZpSEMTspx05A5+OqwTOCBEgp2hfR0h84ui66Dqknadgj3NH56\n7XHTYz7FQsac/O4zZX+LpbagEngt+7CfqGUwK6rZBNm8Dsnh/Y0a3N1lLz+M\nK4PD\r\n=5J+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyUdAPpK7Ff42AiW5xnB8CTky1ydSJ7j4u6yX049H+/AiEA3pKfgm5WXzrIw+Y5lHo9VyCqpC6TU8eFZKIZaK8aImI="}],"size":2276,"noattachment":false,"key":"/copy-symlink/-/copy-symlink-2.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/copy-symlink_2.0.0_1601045760597_0.872126940205338"},"_hasShrinkwrap":false,"readme":"Copy Symlink [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n=========\n\nCopy symlink because [fs.copyFile](https://nodejs.org/dist/latest-v8.x/docs/api/fs.html#fs_fs_copyfile_src_dest_flags_callback) can't.\n\nWhen you use `fs.copyFile` it gets [realpath](https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_realpath_path_options_callback) and then copies content of a source file from `realpath`.\n\n`copy-symlink` also gets `realpath` but then creates `symbolic link` on a new location.\n\n## Install\n\n```\nnpm i copy-symlink\n```\n\n## API\n\n### copySymlink(src, dest)\n\nIt is a promise so you can use it this way:\n\n```js\nconst copySymlink = require('copy-symlink');\nconst src = './symlink';\nconst dst = './symlink-copy';\n\ncopySymlink()\n    .then(console.log)\n    .catch(console.error);\n```\n\nOr using `async-await`\n\n```js\nconst copySymlink = require('copy-symlink');\n\nasync () => {\n   await copySymlink();\n}();\n```\n\n## Related\n\n- [fs-copy-file](https://github.com/coderaiser/fs-copy-file\"fs-copy-file\") - Copies src to dest.\n- [fs-copy-file-sync](https://github.com/coderaiser/fs-copy-file-sync \"fs-copy-file-sync\") - Synchronously copies src to dest.\n\n## License\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/copy-symlink.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/copy-symlink/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/copy-symlink.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/copy-symlink/badge.svg?branch=master&service=github\n[NPMURL]:                   https://npmjs.org/package/copy-symlink \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/copy-symlink  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/copy-symlink \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]:              https://coveralls.io/github/coderaiser/copy-symlink?branch=master\n\n","publish_time":1601045760745,"_cnpm_publish_time":1601045760745,"dist-tags":{"latest":"2.0.0"}}