scp-deploy

2.0.3 • Public • Published

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 ip

  • port Number server ssh port

  • username String server ssh username

  • password String server ssh password

  • path String server path to save files

  • src String/Array local file list

  • lastmodify String/Object last modify time must over this deadline

Licence

MIT

Package Sidebar

Install

npm i scp-deploy

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

13 kB

Total Files

5

Last publish

Collaborators

  • zobor