This package provides a drop in solution to communicate with an on-premise host over TCP communication. The connection is established using the SAP BTP Connectivity service. This module will provide a net.Socket.
npm i sap-cf-socks
(const { ConnectivitySocks } = require('sap-cf-socks')
const socket = new ConnectivitySocks().getSocket() // returns net.Socket