{"_id":"@as2network/file-copier","_rev":"1-9cc7e904602ba490c863fe59ad28738f","name":"@as2network/file-copier","dist-tags":{"latest":"2.2.1"},"versions":{"2.2.1":{"name":"@as2network/file-copier","version":"2.2.1","description":"Watches a directory and ensures all files matching a predicate function are mirrored to another directory (recursively), and deletes the files from the mirror when they are deleted from the source.","repository":{"url":"https://github.com/as2network/lib/master/packages/file-copier"},"license":"Unlicense","main":"output/index.js","devDependencies":{"@types/node":"12.0.0","typescript":"3.4.5"},"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_id":"@as2network/file-copier@2.2.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fCIwVz77CME+/bR+O6sJJVeL37zZgfXuJA10xpaAMehF7KBX4RZMYaVE8uxHQRMIHjBBFYKQBY2PYeqjPwqbEw==","shasum":"e231718e2a520a75991aa3b71a6b1ef751152984","tarball":"https://registry.npmjs.org/@as2network/file-copier/-/file-copier-2.2.1.tgz","fileCount":16,"unpackedSize":42443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrSr+CRA9TVsSAnZWagAAtlMP/iPgyJXsr0TEvayNOF4q\n6BjOPx9kPece6WHzvx7P5T4ZMFjKGT2ev40rzot3T1iHnhi2mUit85vLNaR1\nriQstxQStU46w1XwhizK9sV0XMSWVHiUyel9LjW5Jfbaltfoo1ZgwE0BaTDb\n56D1zcELhVsR8+fbQ4hbkbMRlhPyQKlU6VNVqL7C5YW/+fxToXj4i5cCLG98\nLfC6y/EqE2WLTupc4xIg/LQRJuakzxkj8cKF/WmqxYdkJcLwd0PHudjr7Yq7\nWc6y0dOgDJINxMKR2PfZtgQeI36VLZjcj8yVqmXY8Epc4gv54NFyzShLn1EO\narNlauNw055LWWb4mZG8C6mQonrxeiR16vl6mV/JdPJVC8yKCUdH42R3uSsO\nY4r1OWzempzGMdYW/+eZEgwXrtd/BbtHSgXAJmM6SXcWMUwCIuoldrNybB4b\nvPwIMp3cY190ticfXYej9HyfFsQHzCPP8ase1CU8PyGaNzBap2w152kH9xze\nSiAKo7Cg0H0z7NDXw64WRev1J+JFHauqzbtkeqrTyvW6Pkj+igL9EAfMuAOt\n3Y/Vk+5Is+QYIqd6Dfu7pscMxLiP8w5LeTHCf6+1c0A2PeFIFFKkVcf2m6zx\nsVs2PcJd33y+C2gyCYiMsZuCEl6gtodYXz++qlRMjguM5dM0CU9x6UogEH8/\nbx/P\r\n=NepF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3Jvh2eFQ8IZ5YxyR/ojLK2OGpg0smJr6V5dreJFEcDAiAkwMi2BPccqRa5h+YFwWvGSfZlrmqUlzGfQPIH5DS6dg=="}]},"_npmUser":{"name":"sambacha","email":"sam@freighttrust.com"},"directories":{},"maintainers":[{"name":"sambacha","email":"sam@freighttrust.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-copier_2.2.1_1605184253647_0.1143258519025685"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-12T12:30:53.379Z","2.2.1":"2020-11-12T12:30:53.812Z","modified":"2022-04-04T15:42:12.628Z"},"maintainers":[{"name":"sambacha","email":"sam@freighttrust.com"}],"description":"Watches a directory and ensures all files matching a predicate function are mirrored to another directory (recursively), and deletes the files from the mirror when they are deleted from the source.","repository":{"url":"https://github.com/as2network/lib/master/packages/file-copier"},"license":"Unlicense","readme":"# `File Copier`\n\n## Overview \n\nWatches a directory and ensures all files matching a predicate function are mirrored to another directory (recursively).\nThen deletes the files from the mirror when they are deleted from the source.\n\n## Usage\n\n```typescript\nimport { FileCopier } from '@zoltu/file-copier'\nimport * as path from 'path'\nconst inputDirectoryPath = path.join(__dirname, 'source')\nconst outputDirectoryPath = path.join(__dirname, 'output')\nconst filterFunction = (filePath: string) => !filePath.endsWith('.md')\n\nnew FileCopier(inputDirectoryPath, outputDirectoryPath, filterFunction)\n```\n","readmeFilename":"README.md"}