🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

gulp-scp3

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-scp3

Modern TypeScript Gulp plugin for SCP via SSH2 (Node 20+, Gulp 4/5)

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

gulp-scp3 v1.0.0 npm Node

Modern SCP deployment for Gulp 4/5+ (Node >=20)

Secure file uploads via SSH2 with password & privateKey support

npm Node License

Install

npm install gulp-scp3 --save-dev

Usage

📱 ESM / CommonJS

// ESM
import gulp from "gulp";
import scp from "gulp-scp3";

export default () =>
  gulp.src("dist/**/*").pipe(
    scp({
      host: "your-server.com",
      username: "deploy",
      dest: "/var/www/app/",
      // password: 'pass123', OR ↓
      privateKey: "./id_rsa", // 🆕 v1.0.0
      passphrase: "keypass123", // opcional
    }),
  );
// CommonJS
const gulp = require("gulp");
const scp = require("gulp-scp3");

gulp.task("deploy", () =>
  gulp.src("**/*.js").pipe(
    scp({
      host: "192.168.1.100",
      port: 22, // 🆕 default:22
      username: "user",
      password: "pass", // legacy support ✅
      dest: "/home/user/app/",
    }),
  ),
);

🔧 Options

OptionTypeDefaultDescription
hostStringlocalhostServer hostname/IP
portNumber22SSH port 🆕
usernameStringadminSSH username
passwordString-Password auth ✅ legacy
privateKeyString-Path to private key 🆕
passphraseString-Key passphrase 🆕
destString/home/[username]Remote destination

🧪 Tests

npm test

📁 Repository

GitHub

👨‍💻 Author

Jhonatan Villanueva

💝 Support

Donate

📄 License

MIT © jinvillaz

options.host

Type: String Default value: localhost

A string value that is the host of the server.

options.port

Type: Number Default value: 22

The ssh port of the server. Note this option wasn't tested.

options.username

Type: String Default value: admin

The username of the server.

options.password

Type: String

The password of the user on the remote server.

options.dest

Type: String Default value: /home/username

Remote server directory

Repository

gulp-scp3

Author

Jhonatan Villanueva

Thanks for your donation

If you want to support this free project. Any help is welcome. You can donate by clicking one of the following links:

LISENCE

Copyright (c) 2019 jinvillaz. Licensed under the MIT license.

Keywords

gulp

FAQs

Package last updated on 24 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts