simple-scp
v1.0.0
Published
simple scp tool based on scp2.
Downloads
5
Readme
simple-scp
simple scp tool based on scp2.
Installation
yarn install simple-scp
Example
const SCP = require('simple-scp');
const serverConfig = {
test: {
host: '1.2.3.4',
port: 22,
username: 'root',
password: '123456'
},
prod: {
host: '1.2.3.4',
port: 22,
username: 'root',
password: '123456'
}
};
const deploy = new SCP(serverConfig.test);
deploy.dest('dist', '/usr/share/nginx/html/admin/');