{"id":24731133,"url":"https://github.com/ilya-potseluev/sftp-deploy-js","last_synced_at":"2026-05-05T03:36:13.449Z","repository":{"id":65523075,"uuid":"487602754","full_name":"Ilya-Potseluev/sftp-deploy-js","owner":"Ilya-Potseluev","description":"SFTP deployer using ssh2-sftp-client","archived":false,"fork":false,"pushed_at":"2023-01-28T10:46:53.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-11T09:53:21.357Z","etag":null,"topics":["deploy","deployment","sftp","sftp-client"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sftp-deploy-js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ilya-Potseluev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-01T17:44:48.000Z","updated_at":"2022-05-01T18:36:54.000Z","dependencies_parsed_at":"2023-02-18T15:25:14.041Z","dependency_job_id":null,"html_url":"https://github.com/Ilya-Potseluev/sftp-deploy-js","commit_stats":null,"previous_names":["ilya-potseluev/sftp-deploy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilya-Potseluev%2Fsftp-deploy-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilya-Potseluev%2Fsftp-deploy-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilya-Potseluev%2Fsftp-deploy-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilya-Potseluev%2Fsftp-deploy-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ilya-Potseluev","download_url":"https://codeload.github.com/Ilya-Potseluev/sftp-deploy-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244981118,"owners_count":20542287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deploy","deployment","sftp","sftp-client"],"created_at":"2025-01-27T16:11:27.146Z","updated_at":"2026-05-05T03:36:13.400Z","avatar_url":"https://github.com/Ilya-Potseluev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sftp-deploy-js\nSFTP deployer using [ssh2-sftp-client](https://github.com/theophilusx/ssh2-sftp-client)\n## Installation\n```js\nnpm install --save-dev sftp-deploy-js\n```\n## Example\n```javascript\nimport { fileURLToPath } from 'url';\nimport path from 'path';\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\n\nimport Deployer from 'sftp-deploy-js';\nconst deployer = new Deployer();\n\nconst config = {\n\thost: 'your host',\n\tport: '22',\n\tusername: 'your username',\n\tpassword: 'your password' || null, // if not specified, you can enter in the console\n\t// other options specified in https://github.com/theophilusx/ssh2-sftp-client#sec-4-2-2\n\n\tfrom: path.join(__dirname, 'dist'), // path on local\n\tto: '/path/on/server/',\n\trmdir: true, // remove or not remove an existing directory on server with files\n};\n\nawait deployer.init(config); // checks config and asks password\ndeployer.on('upload', console.log); // copies event from ssh2-sftp-client\nlet total = await deployer.deploy(); // returns the number of uploaded files\nconsole.log(`Total files: ` + total);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filya-potseluev%2Fsftp-deploy-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filya-potseluev%2Fsftp-deploy-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filya-potseluev%2Fsftp-deploy-js/lists"}