Scan your whole stack
Are you using sftp-zip-deploy?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.7.0
sftp-zip-deploy was last scanned on 25 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.7.0 LATEST | 25 Nov 2026 | No rules fired |
| 0.7.0-beta | 25 Nov 2026 | No rules fired |
| 0.6.1 | 24 Nov 2026 | No rules fired |
| 0.6.0 | 24 Nov 2026 | Not shown |
| 0.5.3 | 24 Nov 2026 | Not shown |
Findings for v0.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.7.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Fast single-zip deployment over SFTP for your project's distribution folder:
This library was created because file-by-file deployments over SFTP are too slow, especially for large projects.
For example, my project that produced about 100 files for distribution, was taking about 4 minutes to re-deploy, while on 1Gbt Internet. Switching over to this single-zip deployment brought the time to under 10 seconds.
npm i sftp-zip-deploy
In the example below, we deploy a NodeJS project into /root/web on our remote server.
Once the zip file is deployed, we use cmd.after commands to set that folder as active, then unpack
the archive and install the project's dependencies.
import {zipAndDeploy} from 'sftp-zip-deploy';
await zipAndDeploy({
srcDir: './dist', // local folder with content to deploy
destDir: '/root/web/', // remote folder to copy our zip file
cn: {
host: '1.2.3.4',
port: 123,
username: 'root',
password: '#########'
},
// Settings below are optional
zipFile: './release.zip', // this is the default
cmd: {
// remote command to execute after zip deployment:
after: 'cd /root/web && unzip -o release.zip && npm i'
// it also supports "before" command
}
});
Note that we use option -o (overwrite) with unzip, because otherwise the command may prompt for input,
if files are already there, and this library doesn't work with remote prompts, it will just get stuck.
The main interface ISftpZipDeployConfig has a number of options, including events for providing progress details:
Below is example of using the full potential of the events supported:
{
onZipReady(localPath, size) {
const s = Math.round(size / 1024).toLocaleString();
console.log(`Compressed: ${localPath} | ${s} KB`);
},
onZipDeployed(remotePath, size) {
const s = Math.round(size / 1024).toLocaleString();
console.log(`Deployed: ${remotePath} | ${s} KB`);
},
onCmdOutput(cmd, err, std) {
const txt = (err || std)?.toString().trim();
if (txt) {
if (err) {
console.error(txt); // err
} else {
console.log(txt); // std
}
}
},
// Upload steps are reported for every chunk, which is too much for
// dumping into the console, so we throttle it to report once a second:
onUploadStep: throttle(1000, (percent, total) => {
const t = Math.round(total / 1024).toLocaleString();
console.log(`${percent}% | ${t} KB`);
})
}
function throttle<T, R, A, B, C, D, E>(delay: number, fn: (this: T, p1: A, p2: B, p3: C, p4: D, p5: E) => R)
: (this: T, p1?: A, p2?: B, p3?: C, p4?: D, p5?: E) => R;
function throttle(delay: number, fn: (this: any, ...a: any[]) => void) {
let lastCall = 0;
return function (this: any, ...args: any[]) {
const now = Date.now();
if (now - lastCall >= delay) {
lastCall = now;
fn.apply(this, args);
}
}
}
In version 0.7.0, this library added support for 7-zip archives:
Passing in zipFile with .7z file extension automatically changes the compression to 7-zip.
7-zip compression is significantly faster and more efficient, often 60% better for text, source code and documents than zip. The only downside, you may need to install 7z unpacking tools on the server, while for zip it is a ubiquitous default.
For example, typical for Linux is p7zip-full package, and then you can use 7z x -y release.7z
within cmd.after, where -y is to avoid input prompts.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.