I'm currently trying to use scp-promises - npm in a function node but had no success yet.
The node-sample imports CreateScpConnection from scp-promises but I wasn't able to do so in the node. (import { CreateScpConnection } from 'scp-promises'
)
I'm currently trying around with similar codes from How to make PDF from HTML - #4 by Steve-Mcl and Useage of contrib-npm - #6 by bakman2 provided by @Steve-Mcl and @bakman2 (things like const { scpPromises } = new CreateScpConnection("");
) and so on instead of using "import".
Also, I need to find a way to set the path and filename based on msgs.