{"_id":"ftp-get","_rev":"46-2b2ca8e52cac19a304fb6257a144fad3","name":"ftp-get","description":"Simple to use node.js FTP client for downloading remote files","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"ftp-get","version":"0.1.0","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"94555af05110515cc8306880ba74ad1cc463e339","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.0.tgz","integrity":"sha512-tQAAAsdVkeKYEWjYc3lONfVEg0YRBUPKM7jOFsQi2WrcQe/naeQfAV4ozsu0yitSEf2+1P7QQAVXdUDbLAZV2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAX95BUeJwlNeFKTKmMdHI0ri6C0AKJfajpBCt2RGi0jAiEA96Ii5tMGtVdxJLAs5VTHZEBQkN8gB1hQeUdx8JjOJCA="}]},"scripts":{},"directories":{}},"0.1.1":{"name":"ftp-get","version":"0.1.1","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"f941d1ba55c0508c6648b7e73be7c7118b96f206","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.1.tgz","integrity":"sha512-FTtU3rlr9MLWkOytawD0OXbQsVsO3cE1hMPCyK6ezsgVCeMJZkDuwznQR0iQR7dOQiFwdJqPHG+owlIfKWr/8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFTiF2uRITlF96SQ0zoMcGst9cBeiZfMhKmYSNaC3pFwIgGECmr5GMrloLYNcb+sKlu7v09KhBPptTuVxXFE/YejA="}]},"scripts":{},"directories":{}},"0.1.2":{"name":"ftp-get","version":"0.1.2","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.16","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"770010810d9746f370190a59fa139067820d096e","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.2.tgz","integrity":"sha512-p/PPXqL2uXR9pODN4nOXA/BREpi2WZU10Zfbx4YmsbyUfvN0WEaOLzIZv/F8NElsHRx0sxTMsrXkw3xnc4r6LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqDEgG5j+P6PHcp6zvXiyB8d3ndF94tujAZlnqbg37XAiBJFqCCmF9YXIYcpi/7rzsomu7kGSV5k1wn9GBxCC/Mzg=="}]},"scripts":{},"directories":{}},"0.1.3":{"name":"ftp-get","version":"0.1.3","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.3","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.16","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"22574cc29e985b15fe9fbe073991295e4035c113","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.3.tgz","integrity":"sha512-zV8efniioIz66AxdxvZb2DjslpLkt2/H/VfjrCUfgruWfK4rlLeb2qq/DKviFUQMvV6zHQhw52EGLtzVgEhPsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMjsFqR44tNukIUYnovwS1s4eSEJ2r3B5MhdcsQ/+nbAiEAmoLRYQJXksFKvBikOx8TWYCRJ4m1hbdMU9K/5IOoGFY="}]},"scripts":{},"directories":{}},"0.1.4":{"name":"ftp-get","version":"0.1.4","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.4","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"e73bd45d50707d77aee72690c27062200e5273bb","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.4.tgz","integrity":"sha512-K4yaFH+ehvLz91X4++bHByWPjqFgd6AoQRCwngd6/oCxU79p4OiSumZIeja7GNYq4xFsBlMzhy410wwhkmehLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAoxVoDBYY7wfTYgghWQMFiQGxP3/lvRhPvebg/vCCeAIgBzGoI+g5aHeLWgG3ZM1WdBjJsoTJawihs5zOKfXjOxA="}]},"scripts":{},"directories":{}},"0.1.5":{"name":"ftp-get","version":"0.1.5","main":"./lib/ftp-get.js","description":"Simple node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.1.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.1.5","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"470c721fc86e82735164a31da8e65b1538b690cd","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.1.5.tgz","integrity":"sha512-9lQMlNyGY8oWVdC+JRR0/KF/7aVTTOeKr2was6FkU5defY6fwKtAk8rkTEANiUN/Lq3KnrMYHhDZ9Chd8VtJXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtZf/9QGlBFgWHO7jt70jhHAqa/AqJFDZVGUKiw2WjQAiACzUoLLDSAF9h1GguO9I9ekhLUOR5uji0JmObKu5wxwA=="}]},"scripts":{},"directories":{}},"0.2.0":{"name":"ftp-get","version":"0.2.0","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"ee40c9b05bf2390cc3bfadbc8a7d6f69e565685a","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.0.tgz","integrity":"sha512-gum55v25PL3jXk60UOCBDWySEAq5kkpcydxQy3DZEN54odWibNdyVvHOVwmGmuUnApAM52qQaaIx0W+aj7NSwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWBWjkGWCTkTBlDHltO9q35oy1/2sDT+ltPH9EtPyLzAiEA0Jk41lXdAq7gb5sf9VQB4B5UaQGiN4B/SLn4gCnXyLk="}]},"scripts":{},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.1":{"name":"ftp-get","version":"0.2.1","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"7c06fb2d5cd3a80fc4cabeee3c558ad4d63f13fa","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.1.tgz","integrity":"sha512-N4nXs9dLWDDC7/z/7tSlMVuACkX0wUmva1shjH014D9qU06fiJIorbGvCAtLfj9U5d0GttyGVfGG7mLWdgou0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNg/G3h+PstbXmvz313knK17AIaiNd4vs5DgA2DT2PbAIge3kLwjuUfQdmt/ISGF+7FgyaU2l6z4SVKDYP6Q/dv0c="}]},"scripts":{},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.2":{"name":"ftp-get","version":"0.2.2","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"f178b04631777c8bd327f8c32d58d646e5e578f1","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.2.tgz","integrity":"sha512-Ic/qbjrXtDEtht6CGMEFDeKvCQ5Jm+KcqQTnYBsercd/NOAK/xfNaMR/wGEfzYbBmS2tHxjK0PW07fRGCPqTBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDORCt1QBMwN3TwaiIy7BRObk56zSDJ3RmVsqNW+Dy3SAiEA3WjoejMpY/NkcPngXdDxTYhwpnZsnx+fG488Ae97ZL0="}]},"scripts":{},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.3":{"name":"ftp-get","version":"0.2.3","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.3","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"cbbdd0e35d8c705acf6e461b816db19eacef8928","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.3.tgz","integrity":"sha512-679jlFEy+wcxHibE1FxNn6S8YdbyX7fj3y183a+SF9tCbzM7YeBNDH5S6sBqjscpNamsJEqJh/nR8/s1luQxvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7OpcF2wUaYYxroS8f01mdlCQ72SOxEl4Q+yz0L1dJFAIhAKjPc1r9n3o8gMztEgYlBRUYP0ndYTpvT9uTNrPaEnL3"}]},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.4":{"name":"ftp-get","version":"0.2.4","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.4","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"8f59d2ea107f6ccb3cccfb71c212ba4babadc2ca","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.4.tgz","integrity":"sha512-DnA1n7LPl0eMIjKm1vJJLE1vxNwSGaob36T2HbOXiJL2PL3BkJfsz3SjTxQdBM1uV84tfnfR9ernVoe1AQDkmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ8ylH3HlYJlUWYGB9Dc3C3XaZFIAgjKe8Vc4Dtn42WwIgORf717USZonj3zfYYuaIMcSQztxSp601sbpk64gF7Ns="}]},"scripts":{},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.5":{"name":"ftp-get","version":"0.2.5","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmJsonOpts":{"file":"/home/saltwater/.npm/ftp-get/0.2.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ftp-get@0.2.5","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"0a63d13b15151a68b65460ae7b1b64d159c76908","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.5.tgz","integrity":"sha512-EFJ42b59Vtzg4moOLGip2DehLaiNq+5GEqPityNkrzAjxKarvSqSxyEEIUOUZkIQgvl7Cr6eLITHAxhkoF03iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV2JMx+tJILPuUAna5PMWIUZ8ZrEadpdhCpGTkbZtongIgDFxfQwEg/EPz/Bu+HAZPSbFu/uSudkUyUCALt70H+TY="}]},"scripts":{},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.6":{"name":"ftp-get","version":"0.2.6","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmUser":{"name":"saltwaterc","email":"saltwaterc@gmail.com"},"_id":"ftp-get@0.2.6","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"09479dbe87f7a9400d7a6238caf09e9480118caa","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.6.tgz","integrity":"sha512-o+VsiiY8Ujssf44PA05yH4rItCCzK5rPSQ2pF/WH4nfgbbHkA6eRtAwPKlD1Mr5Tm4fxVEzmzHP2SI670i29WA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwu41x9fCzWpbU0eeZmvFPq1Wt0RNNfVP8/A6gUdEbXAIhANd2hGp3rucku1NKkCpFhMojAOHNd4eFy014i5v4Rq77"}]},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.7":{"name":"ftp-get","version":"0.2.7","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"git://github.com/SaltwaterC/ftp-get.git"},"keywords":["ftp","get","download"],"_npmUser":{"name":"saltwaterc","email":"saltwaterc@gmail.com"},"_id":"ftp-get@0.2.7","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"4a19e225866ec6e1e78cfbe4933b2ecbba18b26c","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.7.tgz","integrity":"sha512-sxS3qTmjgPuV94wK4BFEegPDmdXJd7f/0CHCXXkVx6mA5ha9mcJapAc4Rx91WHfdTOPiYxR3o/3u71Llr7DCxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsCej+yVKVZk2nRRcqLx8jj15vtRZNzkB+jbpauQr0SAIgGPyd+zIPpsVCO8jTBf2Z4KXL70ee1Y2ZHIGNcKSwj5Y="}]},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"directories":{}},"0.2.8":{"name":"ftp-get","version":"0.2.8","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.4.x"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"https://github.com/SaltwaterC/ftp-get"},"keywords":["ftp","get","download"],"readme":"## About ![still maintained](http://stillmaintained.com/SaltwaterC/ftp-get.png)\n\nSimple FTP client for node.js. Useful for downloading files from a remote location, therefore it implements just a small subset of the FTP protocol. Includes a method, modeled after HTTP's HEAD in order to check the existence of a remote resource without downloading its contents. All the data connections use the passive mode. The error reporting was implemented with care. Although it it used in production, it may still fail with exotic FTP servers that do things in their own weird way.\n\n## Installation\n\nEither manually clone this repository into your node_modules directory, or the recommended method:\n\n> npm install ftp-get\n\n## Usage mode\n\n```javascript\nvar ftp = require('ftp-get');\n\nftp.get('ftp://localhost/foo.pdf', '/path/to/foo.pdf', function (error, result) {\n\tif (error) {\n\t\tconsole.error(error);\n\t} else {\n\t\tconsole.log('File downloaded at: ' + result);\n\t}\n});\n```\n\nIf you need to use authentication, pass the user:pass information to the FTP URL itself. Otherwise, it tries anonymous authentication. The target file path may be relative. [path.resolve()](http://nodejs.org/docs/latest/api/path.html#path.resolve) is used to obtain the absolute path. The absolute path is also returned into the result argument if there aren't any errors.\n\nYou may buffer the file without saving it to the disk. Useful if you download something that need to be processed without the need for saving the file:\n\n```javascript\nftp.get('ftp://localhost/foo.xml', function (error, result) {\n\tif (error) {\n\t\tconsole.error(error);\n\t} else {\n\t\tconsole.log('The XML document contents: ' + result);\n\t}\n});\n```\n\nBasically you need to pass the callback as the second argument of the get function instead of passing the file path. The buffered response mode is intended to be used only with textual data.\n\nIn order to check the existence of a remote resource without the need for actually download the file, there's the ftp.head() method:\n\n```javascript\nvar ftp = require('ftp-get');\nftp.head('ftp://localhost/foo/bar.txt', function (error, size) {\n\tif (error) {\n\t\tconsole.error(error);\n\t} else {\n\t\tconsole.log('The remote file size is: ' + size); // the file size if everything is OK\n\t}\n});\n```\n\n## Misc\n\n * You may use the client in development mode in order to see the debug messages. Just define the NODE_ENV environment variable with the value 'development'.\n * If there's a FTP error, then the returned error argument also contains the [FTP status code](http://www.theegglestongroup.com/writing/ftp_error_codes.php) of the failed request (error.code). All 4xx and 5xx codes are considered to be errors. The client does not retry even though 4xx may be considered temporary errors.\n \n## Error Codes\n\nEach failure has an attached error code. The write stream, if the file is saved to the disk, returns the file path into the error.file property. The rest of the failures, return the URL of the request, as error.url. Note that the error.url property contains the parsed URL information.\n\nThe codes are:\n\n * 1 - write stream failure\n * 2 - data socket information timeout\n * 3 - data socket error\n * 4 - data socket timeout\n * 5 - command socket failure\n * 6 - missing write stream at the end of the transfer\n","readmeFilename":"README.md","_id":"ftp-get@0.2.8","dist":{"shasum":"a9a75349b3b97e247c24779e8772f0ba2721483b","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.2.8.tgz","integrity":"sha512-O3lqYGr1SRrIocGbeazUoOxjJG/PdeCk27aOFkYCNixRP1DMRn+lXasAvvqnZG5bpzQ8jI/9FDupIKzQ4t21zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDprEkPAUotV2IJ12wEaWS7t+alywVcip+cS4EFdONemAiEA7346+608TV22FzpK7vmXaFViKW6VS6bnHdOj57zAh4I="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"saltwaterc","email":"saltwaterc@gmail.com"},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}]},"0.3.0":{"name":"ftp-get","version":"0.3.0","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.6.x"},"scripts":{"test":"make test"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"https://github.com/SaltwaterC/ftp-get"},"keywords":["ftp","get","download"],"readme":"## About [![build status](https://secure.travis-ci.org/SaltwaterC/ftp-get.png?branch=master)](http://travis-ci.org/SaltwaterC/ftp-get) ![still maintained](http://stillmaintained.com/SaltwaterC/ftp-get.png)\n\nSimple FTP client for node.js implemented in pure JavaScript. Useful for downloading files from a remote location, therefore it implements just a small subset of the FTP protocol. Includes a method, modeled after HTTP's HEAD in order to check the existence of a remote resource without downloading its contents. The ftp.head() method uses the FTP SIZE command which a RFC 3659 extension to the protocol, since 2007. However, in practice most FTP servers implement the SIZE extension before the RFC publishing date.\n\n## Installation\n\nEither manually clone this repository into your node_modules directory, or the recommended method:\n\n> npm install ftp-get\n\n## Usage mode\n\n * The [ftp.get method](https://github.com/SaltwaterC/ftp-get/wiki/ftp.get-method)\n * The [ftp.head method]()\n\n## Bug reporting\n\nUnlike 0.2 and before, the 0.3 version of ftp-get went through extensive testing with real world FTP servers. However, some edge cases may still fail. Therefore, in order to have a proper bug repot I'm kindly asking you to provide the troublesome FTP URL (if possible).\n\nI'd appreciate the output of this script as well:\n\n```bash\nNODE_ENV=development node client.js ftp://example.com/ftp/url.foo\n```\n\n```javascript\n// client.js\nvar ftp = require('ftp-get')\n\nvar url = process.argv[2]\n\nftp.get(url, 'dl.bin', function (err, res) {\n\tconsole.log(err, res)\n})\n```\n","readmeFilename":"README.md","_id":"ftp-get@0.3.0","dist":{"shasum":"3ae8eb3fb37864c6dcc5c052632b42bb33593984","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.3.0.tgz","integrity":"sha512-k7LUC21XESKOQegU7PDLPQqXnBjDIgyP+C0b3mV7B0BhE6PtAcN4dj1/2rRqJIufTjZiXLn2/Rbi4qKZ/rhVIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcKh3eNvreuuHIBSEBWaRxk8v16jujqMhQsTRWnZFhyAiBF6KVKNVDRRj1v90w1RbyIRyXGsV30kF8V8xNHPi50SA=="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"saltwaterc","email":"saltwaterc@gmail.com"},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}]},"0.3.1":{"name":"ftp-get","version":"0.3.1","main":"./lib/ftp-get.js","description":"Simple to use node.js FTP client for downloading remote files","engines":{"node":">=0.6.x"},"dependencies":{"buffer-concat":">= 0.0.1"},"scripts":{"test":"make test"},"homepage":"https://github.com/SaltwaterC/ftp-get","author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"https://github.com/SaltwaterC/ftp-get"},"keywords":["ftp","get","download"],"readme":"## About [![build status](https://secure.travis-ci.org/SaltwaterC/ftp-get.png?branch=master)](http://travis-ci.org/SaltwaterC/ftp-get) ![still maintained](http://stillmaintained.com/SaltwaterC/ftp-get.png)\n\nSimple FTP client for node.js implemented in pure JavaScript. Useful for downloading files from a remote location, therefore it implements just a small subset of the FTP protocol. Includes a method, modeled after HTTP's HEAD in order to check the existence of a remote resource without downloading its contents. The ftp.head() method uses the FTP SIZE command which a RFC 3659 extension to the protocol, since 2007. However, in practice most FTP servers implement the SIZE extension before the RFC publishing date.\n\n## Installation\n\nEither manually clone this repository into your node_modules directory, or the recommended method:\n\n> npm install ftp-get\n\n## Usage mode\n\n * The [ftp.get method](https://github.com/SaltwaterC/ftp-get/wiki/ftp.get-method)\n * The [ftp.head method](https://github.com/SaltwaterC/ftp-get/wiki/ftp.head-method)\n\n## Bug reporting\n\nUnlike 0.2 and before, the 0.3 version of ftp-get went through extensive testing with real world FTP servers. However, some edge cases may still fail. Therefore, in order to have a proper bug repot I'm kindly asking you to provide the troublesome FTP URL (if possible).\n\nI'd appreciate the output of this script as well:\n\n```bash\nNODE_ENV=development node client.js ftp://example.com/ftp/url.foo\n```\n\n```javascript\n// client.js\nvar ftp = require('ftp-get')\n\nvar url = process.argv[2]\n\nftp.get(url, 'dl.bin', function (err, res) {\n\tconsole.log(err, res)\n})\n```\n","readmeFilename":"README.md","_id":"ftp-get@0.3.1","dist":{"shasum":"e8dcc1dba679c94b6dc8cfa0df7d956929365204","tarball":"https://registry.npmjs.org/ftp-get/-/ftp-get-0.3.1.tgz","integrity":"sha512-d/599kBz5/ghPCO4vyzB37fOUrlom0FybPFTahmUyHzWMEgUU2apsVTNqyYb8MwnCd30xh4iGBqbi4S6JCn1aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf6/+E7DLb7M2Ubb7idzzbnP+CuW7R1txJ6zN1oriRMQIhAOjXCvYjQaiM4Me2qe8EOFbGrf8XQ2+9csXYviT2rgKa"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"saltwaterc","email":"saltwaterc@gmail.com"},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}]}},"maintainers":[{"name":"saltwaterc","email":"saltwaterc@gmail.com"}],"time":{"modified":"2022-06-18T04:03:24.901Z","created":"2011-07-15T14:48:24.908Z","0.1.0":"2011-07-15T14:48:26.040Z","0.1.1":"2011-07-16T10:49:51.973Z","0.1.2":"2011-07-17T09:45:00.415Z","0.1.3":"2011-07-17T13:04:53.783Z","0.1.4":"2011-07-20T14:07:59.325Z","0.1.5":"2011-07-25T15:04:50.535Z","0.2.0":"2011-08-03T09:58:20.283Z","0.2.1":"2011-09-05T13:35:16.919Z","0.2.2":"2011-09-05T14:18:04.164Z","0.2.3":"2011-09-05T18:05:02.255Z","0.2.4":"2011-09-06T08:06:52.833Z","0.2.5":"2011-09-23T11:51:38.878Z","0.2.6":"2011-10-27T09:26:22.815Z","0.2.7":"2011-10-27T10:19:04.302Z","0.2.8":"2013-01-19T11:24:46.642Z","0.3.0":"2013-02-04T15:03:53.782Z","0.3.1":"2013-03-14T07:56:08.781Z"},"author":{"name":"Stefan Rusu","url":"http://www.saltwaterc.eu/"},"repository":{"type":"git","url":"https://github.com/SaltwaterC/ftp-get"},"users":{"afewinterestingthings":true}}