{"versions":{"0.1.7":{"name":"gulp-sftp-up4","version":"0.1.7","description":"Upload files via SSH and working with gulp 4.0. Fork of original gulp-sftp","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Robespeler/gulp-sftp-up4.git"},"homepage":"https://github.com/Robespeler/gulp-sftp-up4","author":{"name":"Matthew Drake","email":"mdrake@mediadrake.com","url":"http://mediadrake.com"},"contributors":[{"name":"Benjamin P. Jung","email":"headcr4sh@gmail.com"},{"name":"Carson Britt","email":"carson28@gmail.com"},{"name":"Matthew Drake","email":"mdrake@mediadrake.com"},{"name":"Valan Brown","email":"github@valanbrown.com"},{"name":"Sorin Guga","email":"sorin.guga@gmail.com"},{"name":"Dan503 https://github.com/Dan503"},{"name":"Robespeler"}],"engines":{"node":">=0.10.0"},"scripts":{},"files":["index.js"],"keywords":["gulpplugin","sftp","file","files","transfer","protocol","server","client","upload","deploy","deployment"],"dependencies":{"async":"~0.9.0","gulp-util":"~3.0.0","object-assign":"~0.3.1","parents":"~1.0.0","ssh2":"~0.6.1","through2":"~0.4.2"},"devDependencies":{},"gitHead":"3e9d02d3ccebc76a63ab72e7b6734d5e51e1313c","bugs":{"url":"https://github.com/Robespeler/gulp-sftp-up4/issues"},"_id":"gulp-sftp-up4@0.1.7","_npmVersion":"6.1.0","_nodeVersion":"9.11.1","_npmUser":{"name":"anonymous","email":"robespeler@gmail.com"},"dist":{"integrity":"sha512-t20imYc+GCn31YW7JlcJaCdKcWLPMj/LNDMjLpvcGY4vo1Vje80PzXD4IDQnynQ05DtTJnv+9LddwaRgQI48Fg==","shasum":"28722b6b1644fc3f115a74d36fadeffdd54657a3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gulp-sftp-up4/-/gulp-sftp-up4-0.1.7.tgz","fileCount":3,"unpackedSize":18685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdUIgCRA9TVsSAnZWagAA/6oP/1GPEu7JdyKEEsgv0NGE\n9fHErVWtb0t3CHNJt54xY1piiavij2kKWQvIEH1lLT0sJATImCbTJyK1JNvK\nicBZ0W2tw2U3DfalCE3aFCi8nRZv/+WC+X0GsvAJepGeNKXxfvbZtcC9lUSC\ndPtf/OWxYIagPcEIuHfS9U4kbCoA3aEqr+y/xrvQiMe+fhSr/MabWlTOUDn9\nqixt1X7vemktY3HOHjNcfWDz2qGdmI3osgxtDsqIKRr4wsuSx6qeNPfdF7wa\nAFENEKgvNsGlpGG3IThkfWFx0lfoxgkQvaQB8oXJGo3kcvixFGle1X68nyXj\npnbH0hMPWwYUfFVW6/G1yRN+iPezP7/+QhAVwL+cUez+n+LWNqpglVznAiAS\ngRc92+ceT6X8a5UAkvRxXoStBAQZBa4XgVBADFzYj6wNP0arv0j6AbLY17SA\nL+kXr+prlfTSPYB0Rnau65AxTm6fTCQPDTeJzMXQrnRajPwcV2KyALheyrCn\nqkPLKqpnEJxJK57jguALj7UH1huhngYZp15x1mRIUp04oim+x0rritajTYrQ\nFkygr1V0i7EHxO/jtRXMz3+RZNaanXsTyGspYkQw6C70flrAWLh7Sr366epn\nb/MO2hxY3GZCVR0IdjKNsbBAJl+QoJYTtCDdR9bww9CMRZzgaZT62DI+jAZW\nkSKX\r\n=Bum1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyFs9LCiMM/vHrjwqYEm26JJpBNVXAnk6oM/TS2M3MtQIhAJA+2foDA6ygputvGtAyTRaIjnoxXRogKlPHX/M9Tnab"}]},"maintainers":[{"name":"anonymous","email":"robespeler@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-sftp-up4_0.1.7_1534411295843_0.38516554027465455"},"_hasShrinkwrap":false},"0.1.8":{"name":"gulp-sftp-up4","version":"0.1.8","description":"Upload files via SSH and working with gulp 4.0. Fork of original gulp-sftp","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Robespeler/gulp-sftp-up4.git"},"homepage":"https://github.com/Robespeler/gulp-sftp-up4","author":{"name":"Matthew Drake","email":"mdrake@mediadrake.com","url":"http://mediadrake.com"},"contributors":[{"name":"Benjamin P. Jung","email":"headcr4sh@gmail.com"},{"name":"Carson Britt","email":"carson28@gmail.com"},{"name":"Matthew Drake","email":"mdrake@mediadrake.com"},{"name":"Valan Brown","email":"github@valanbrown.com"},{"name":"Sorin Guga","email":"sorin.guga@gmail.com"},{"name":"Dan503 https://github.com/Dan503"},{"name":"Robespeler"}],"engines":{"node":">=0.10.0"},"scripts":{},"files":["index.js"],"keywords":["gulpplugin","sftp","file","files","transfer","protocol","server","client","upload","deploy","deployment"],"dependencies":{"async":"~0.9.0","gulp-util":"~3.0.0","object-assign":"~0.3.1","parents":"~1.0.0","ssh2":"~0.6.1","through2":"~0.4.2"},"devDependencies":{},"gitHead":"da2f275a28af5babc070d9fbc96798931cd52b06","bugs":{"url":"https://github.com/Robespeler/gulp-sftp-up4/issues"},"_id":"gulp-sftp-up4@0.1.8","_npmVersion":"6.1.0","_nodeVersion":"9.11.1","_npmUser":{"name":"anonymous","email":"robespeler@gmail.com"},"dist":{"integrity":"sha512-L81sjA4mpZj/hRbUNKLk7UlzgMyPmoOiau0eBPntJXKgPk1I8McfzbMe/jMIIrcbDZf9mF59K3WtC6WspGxgrg==","shasum":"2590293b0ce71d80f7a273b66d5031cebacaa43f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gulp-sftp-up4/-/gulp-sftp-up4-0.1.8.tgz","fileCount":3,"unpackedSize":18689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdUNqCRA9TVsSAnZWagAApUgQAIef5E8bo3q4ENhuubUa\n29zjqnoEOCMwXwejkAsAzZgIL/0+qpi4GnAb99rNKPv5+iKk5uYgxjWQDIBl\n1eQ171SVC34lANRDKZqJutDjenh+jyh5Bq79ECLArfKcVR663pGn2CLy47Cz\nEhQgPqICt6oGlH97yoEnrmJF1xIAvvuw4boKgB0ZKdeGJA6LvCL3xGKmxvd5\nrLFS6hAEDe7ZFwjweZd6RFXrqxSUCfEJN9NkyaYSGe9tgIRqPotus7B1D4iI\nCWYuzdJmbJJRiUf/MCUtIleRIVtMStjVTtOyehFv9t+YvzvFl4XeL9ZqhpW3\n3TQK4HAT68pfOZUYKowEpgpWbcMSTpz4iSaOzwsIeA6wDM4QOSgZrbgAbVwH\nB1FBzSU+ZJ/6LM1uj9ArtEEDMUG+JLPHFbFtaKtT1DNWOeftnHyfarmJJHmr\nkWj4HlqrFoazMcrQzK2g6Wn8Ik4IfUk4fHz9bmxM1yTWq/S4TNA3ukuoawjD\n4SI5PL8p1r0Fj5W4H5/NgbOxpfrGK2KoZeikVHOaYaUMlpi1B1kr2G06ZIfB\notYp7SuMd10rS6151WW6bqsuX2wWf01UA0r+pmkC5+ouAEZtJKZOyYsApwTM\nQAhxYgK5/Eh21hWeLbgqk6kjUkx88018og6hd75gPflT5cvRDRuW0W1YgpbO\nOzLA\r\n=BDno\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6cpXb/1qSIMOGUYF2dteT0oeKws9dQnPTUF4BccH96QIhAMvPNWDho5tfxiroGhsiVnNtzzm6eDLj5qth4n0f81PV"}]},"maintainers":[{"name":"anonymous","email":"robespeler@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-sftp-up4_0.1.8_1534411626248_0.27185016104878645"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"0.1.8"},"name":"gulp-sftp-up4","time":{"created":"2022-01-26T19:28:53.222Z","0.1.7":"2018-08-16T09:21:35.934Z","modified":"2022-01-26T19:28:53.222Z","0.1.8":"2018-08-16T09:27:06.387Z"},"readme":"# [gulp](http://gulpjs.com)-sftp-up4 [![Build Status](https://travis-ci.org/gtg092x/gulp-sftp.svg?branch=master)](https://travis-ci.org/gtg092x/gulp-sftp)\r\n\r\nThis is fork of original gulp-sftp with little change which let us to use it with gulp 4.0 version\r\nIt solve error: \"TypeError: file.pipe is not a function\".\r\nThis solution is by Dan503 https://github.com/gtg092x/gulp-sftp/issues/78#issuecomment-356475605\r\nAnd what I did - is just public it in npm with name \"gulp-sftp-up4\"\r\n\r\nOriginal README text below:\r\n(Just use new name gulp-sftp-up4)\r\n\r\n\r\n> Upload files via SSH\r\n\r\nUseful for uploading and deploying things via sftp. Right now this plugin just uploads everything. Caching and hash comparison are two TODO items.  \r\n\r\n[![NPM](https://nodei.co/npm/gulp-sftp.png?downloads=true&stars=true)](https://nodei.co/npm/gulp-sftp/)\r\n\r\n## Install\r\n\r\n```bash\r\n$ npm install --save-dev gulp-sftp-up4\r\n```\r\n\r\n\r\n## Usage\r\n\r\n```js\r\nvar gulp = require('gulp');\r\nvar sftp = require('gulp-sftp-up4');\r\n\r\ngulp.task('default', function () {\r\n\treturn gulp.src('src/*')\r\n\t\t.pipe(sftp({\r\n\t\t\thost: 'website.com',\r\n\t\t\tuser: 'johndoe',\r\n\t\t\tpass: '1234'\r\n\t\t}));\r\n});\r\n```\r\n\r\n\r\n## API\r\n\r\n### sftp(options)\r\n\r\n#### options.host\r\n\r\n*Required*  \r\nType: `String`\r\n\r\n#### options.port\r\n\r\nType: `Number`  \r\nDefault: `22`\r\n\r\n#### options.user\r\n\r\nType: `String`  \r\nDefault: `'anonymous'`\r\n\r\n#### options.pass\r\n\r\nType: `String`  \r\nDefault: `null`\r\n\r\nIf this option is not set, gulp-sftp assumes the user is using private key authentication and will default to using keys at the following locations:\r\n\r\n`~/.ssh/id_dsa` and `/.ssh/id_rsa`\r\n\r\nIf you intend to use anonymous login, use the value '@anonymous'.\r\n\r\n#### options.remotePath\r\n\r\nType: `String`  \r\nDefault: `'/'`\r\n\r\nThe remote path to upload to. If this path does not yet exist, it will be created, as well as the child directories that house your files.\r\n\r\n#### options.remotePlatform\r\n\r\nType: `String`\r\nDefault: `'unix'`\r\n\r\nThe remote platform that you are uploading to. If your destination server is a Windows machine, use the value `windows`.\r\n\r\n#### options.key\r\n\r\ntype `String` or `Object`\r\nDefault: `null`\r\n\r\nA key file location. If an object, please use the format `{location:'/path/to/file',passphrase:'secretphrase'}`\r\n\r\n\r\n#### options.passphrase\r\n\r\ntype `String`\r\nDefault: `null`\r\n\r\nA passphrase for secret key authentication. Leave blank if your key does not need a passphrase.\r\n\r\n#### options.keyContents\r\n\r\ntype `String`\r\nDefault: `null`\r\n\r\nIf you wish to pass the key directly through gulp, you can do so by setting it to options.keyContents.\r\n\r\n#### options.auth\r\n\r\ntype `String`\r\nDefault: `null`\r\n\r\nAn identifier to access authentication information from `.ftppass` see [Authentication](#authentication) for more information.\r\n\r\n#### options.authFile\r\n\r\ntype `String`\r\nDefault: `.ftppass`\r\n\r\nA path relative to the project root to a JSON formatted file containing auth information.\r\n\r\n#### options.timeout\r\ntype `int`\r\nDefault: Currently set by ssh2 as `10000` milliseconds.\r\n\r\nAn integer in milliseconds specifying how long to wait for a server response.\r\n\r\n#### options.agent\r\ntype `String`\r\nDefault: `null`\r\n\r\nPath to ssh-agent's UNIX socket for ssh-agent-based user authentication.\r\n\r\n#### options.agentForward\r\ntype `bool`\r\nDefault: `false`\r\n\r\nSet to true to use OpenSSH agent forwarding. Requires that `options.agent` is configured.\r\n\r\n#### options.callback\r\ntype `function`\r\nDefault: `null`\r\n\r\nCallback function to be called once the SFTP connection is closed.\r\n\r\n\r\n##Authentication\r\n\r\nFor better security, save authentication data in a json formatted file named `.ftppass` (or to whatever value you set options.authFile to). **Be sure to add this file to .gitignore**. You do not typically want auth information stored in version control.\r\n\r\n```js\r\nvar gulp = require('gulp');\r\nvar sftp = require('gulp-sftp');\r\n\r\ngulp.task('default', function () {\r\n\treturn gulp.src('src/*')\r\n\t\t.pipe(sftp({\r\n\t\t\thost: 'website.com',\r\n\t\t\tauth: 'keyMain'\r\n\t\t}));\r\n});\r\n```\r\n\r\n`.ftppass`\r\n\r\n```json\r\n{\r\n  \"keyMain\": {\r\n    \"user\": \"username1\",\r\n    \"pass\": \"password1\"\r\n  },\r\n  \"keyShort\": \"username1:password1\",\r\n  \"privateKey\": {\r\n    \"user\": \"username\"\r\n  },\r\n  \"privateKeyEncrypted\": {\r\n    \"user\": \"username\",\r\n    \"passphrase\": \"passphrase1\"\r\n  },\r\n  \"privateKeyCustom\": {\r\n    \"user\": \"username\",\r\n    \"passphrase\": \"passphrase1\",\r\n    \"keyLocation\": \"/full/path/to/key\"\r\n  }\r\n}\r\n```\r\n\r\n\r\n##Work with [pem](https://github.com/andris9/pem)\r\n\r\nTo use [pem](https://github.com/andris9/pem) create private keys and certificates for access your server: \r\n\r\n```js\r\nvar pem = require('pem');\r\ngulp.task('deploy:test', function () {\r\n    pem.createCertificate({}, function (err, kyes) {\r\n        return gulp.src('./src/**/*')\r\n            .pipe(sftp({\r\n                host: 'testserver.com',\r\n                user: 'testuser',\r\n                pass: 'testpass',\r\n                key: kyes.clientKey,\r\n                keyContents: kyes.keyContents\r\n            }));\r\n    });\r\n});\r\n```\r\n\r\n##Known Issues\r\n\r\n###SFTP error or directory exists: Error: No such file /remote/sub/folder\r\n\r\nVersion 0.1.2 has an issue for Windows clients when it comes to resolving remote paths. Please upgrade to 0.1.3.\r\n\r\n###Error:: SFTP abrupt closure\r\n\r\n~~Some conditions can cause the [ssh2](https://github.com/mscdex/ssh2) connection to abruptly close. The issues that commonly cause this are large files (though they are checked for and are automatically converted to streams) and heavy memory usage.~~\r\n\r\n~~To solve problems related to [ssh2](https://github.com/mscdex/ssh2) closures, try to use streams instead of buffers. Do this by passing `{buffer:false}` as an option with `gulp.src`. This isn't always an option, so I would suggest exploring ways to move between streams and buffers. Lars Kappert has a [great article on managing this](https://medium.com/web-code-junk/a2010c13d3d5).~~\r\n\r\nSome awesome work via @mscdex addressed this issue. Please make sure you have the latest version or greater of gulp-sftp (0.1.1) and the latest version or greater of ssh2 (0.3.4) and you should not see abrupt disconnects with large files.\r\n\r\n## License\r\n\r\n[MIT](http://opensource.org/licenses/MIT)","users":{}}