scp-deploy
v2.0.3
Published
The upload tool provided to the developer
Downloads
15
Maintainers
Readme
scp-deploy
An upload tool provided to developers using ssh
Install
$ npm install scp-deploy --save-dev
API
let deploy = require('scp-deploy')
deploy({
host: '',
port: 22,
username: '',
password: '',
src: [],
path: ''
}).then((info)=>{
// do sth.
}).catch((err)=>{
// handler error
})
deploy([options])
host
String server ipport
Number server ssh portusername
String server ssh usernamepassword
String server ssh passwordpath
String server path to save filessrc
String/Array local file listlastmodify
String/Object last modify time must over this deadline
Licence
MIT