Is there any way to download files from a sftp server to local folder location using node js.
Tried to get the files using sftp.fastGet
There are a lot of ways to download files from a server via SFTP. It is a question that can be solved easily by googling. If you google the question, you will find all of them with code examples. The first link on Google is How to connect to SFTP in Node.js
I use ssh2 module for the job as it is the module that others are based on. My recommendation is to write your own SFTP connector with it. However, you can find a lot of already written implementations on the internet and NPM register, such as ssh2-sftp-client .
A little bit of googling, reading and you can do this! Come back when Google cannot help you, please. Good luck, mate!