scp2
A drop in replacement for the unmaintained scp2 package:
js
const { scp } = require('node-scp/scp2');
scp('dist/', 'deploy:secret@example.com:/var/www/', (err) => {});Unlike scp2 it works with servers that only speak SCP, such as Dropbear on OpenWrt, and it returns a promise when no callback is given.