JSPM

@xinliang/scp

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q27811F
  • License ISC

node-scp enhancement

Package Exports

  • @xinliang/scp

Readme

@xinliang/scp

Encapsulated node-scp, uploading files to the server is more convenient.

0. install

npm i @xinliang/scp -D

1. init scp.config.json file

The clientConfig configuration should be consistent with node-scp. If you expect more freedom of control, you should use node-scp directly

{
  "clientConfig": {
    "host": "www.google.com",
    "port": 22,
    "username": "root"
  },
  "uploadPath": "./dist",
  "remotePath": "project/workspace"
}

2. add scripts for package.json

  ...
  "scripts": {
+    "push": "scp",
  },
  ...