SFTP Connection
This is a module for setting up sftp connections.
The module allows you to call the exported sftp module multiple times without having to handle reconnections and ending connections.
It is therefore a convenience module.
Use it like this:
const sftpConnection = require('../sftp-connection');
const sftp = await sftpConnection(conf.sftp);
await sftp.put(readStream, remotePath);
await sftp.end();
Published using command:
npm publish --access public