atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
202 stars 57 forks source link

add execAsStream execution option #40

Closed jeromew closed 7 years ago

jeromew commented 7 years ago

Here is a PR that adds the execAsStream feature as per #38

I don't really see how to test it programmatically since we would need a stable ftp server.

I use it

Up to now it has behaved as expected (both for the success case and the error case triggering and 'error' event)

var stream = (new lftp(config)).raw('find').execAsStream(); stream.pipe(process.stdout);

atinux commented 7 years ago

Thank you a lot @jeromew 👏

It's now available on npm with the version 0.6.0