{"_id":"ember-cli-copy-dereference","_rev":"4-7898f03596f83894c47aed8129a9922c","name":"ember-cli-copy-dereference","description":"Copy files and directories, dereferencing symlinks and preserving last-modified times","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"ember-cli-copy-dereference","description":"Copy files and directories, dereferencing symlinks and preserving last-modified times","version":"1.0.0","author":{"name":"Jo Liss","email":"joliss42@gmail.com"},"main":"index.js","license":"MIT","repository":{"type":"git","url":"https://github.com/broccolijs/node-copy-dereference"},"dependencies":{},"gitHead":"4a6fa65266acb63e2d32a7145fdbf3ce7eb8ea41","bugs":{"url":"https://github.com/broccolijs/node-copy-dereference/issues"},"homepage":"https://github.com/broccolijs/node-copy-dereference","_id":"ember-cli-copy-dereference@1.0.0","scripts":{},"_shasum":"a1795bf6c70650317df4ab8674dd02e0bea5d4fd","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"dist":{"shasum":"a1795bf6c70650317df4ab8674dd02e0bea5d4fd","tarball":"https://registry.npmjs.org/ember-cli-copy-dereference/-/ember-cli-copy-dereference-1.0.0.tgz","integrity":"sha512-3Ul+NbIDlqJGJY65KeQ9ZsG8gXAUvV7GQx7PIZ+Hs+SPwnc3H0QrqW6czWp1mJuDjKdgvOoZD55Uy+DRNkkG0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOBwimChzqpqKnCq0h4MIPEr4y5XjopN4s+n5O2IjCtAiAoY17H7z6ho/WeqIlDWsSBvcDU7dW8W1wajgKf0aK9xw=="}]}}},"readme":"# node-copy-dereference\n\nCopy a file or directory, dereferencing symlinks in the process, and\npreserving last-modified times and file modes.\n\nMade for use by Broccoli and Broccoli plugins.\n\n## Installation\n\n```sh\nnpm install --save copy-dereference\n```\n\n## Example\n\n```js\nvar copyDereferenceSync = require('copy-dereference').sync;\n\ncopyDereferenceSync('src_dir/some_file.txt', 'dest_dir/some_file.txt');\ncopyDereferenceSync('src_dir/some_dir', 'dest_dir/some_dir');\n```\n\n## Description\n\n```js\ncopyDereferenceSync(srcPath, destPath)\n```\n\nCopy the file or directory at `srcPath` to `destPath`.\n\nIf `srcPath` is a symlink, or if there is a symlink somewhere underneath the\ndirectory at `srcPath`, it will be dereferenced, that is, it will be replaced\nwith the thing it points to.\n\nFile & directory last-modified times as well as file modes (permissions &\nexecutable bit) will be preserved.\n\nWe throw an exception if there are any broken symlinks at or beneath\n`srcPath`, if `srcPath` does not exist, of if `destPath`'s parent directory\ndoes not exist.\n\nFurthermore, we throw an exception if `destPath` already exists. Thus in\ncontrast to Unix `cp`, the following will fail:\n\n```js\n// dest_dir already exists, and we might expect dest_dir/some_dir to be\n// created. This does not work; pass 'dest_dir/some_dir' instead.\ncopyDereferenceSync('src_dir/some_dir', 'dest_dir');\n```\n\nFile types other than files, directories and symlinks (such as device files or\nsockets) are not supported and will cause an exception.\n\n## Notes\n\n* There intentionally isn't an asynchronous version. It's not clear that we\nneed or want one. Before sending a patch to add an async version, please share\nyour use case on the issue tracker.\n","maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"time":{"modified":"2022-06-16T20:36:51.712Z","created":"2015-01-25T14:37:32.548Z","1.0.0":"2015-01-25T14:37:32.548Z"},"homepage":"https://github.com/broccolijs/node-copy-dereference","repository":{"type":"git","url":"https://github.com/broccolijs/node-copy-dereference"},"author":{"name":"Jo Liss","email":"joliss42@gmail.com"},"bugs":{"url":"https://github.com/broccolijs/node-copy-dereference/issues"},"license":"MIT","readmeFilename":"README.md"}